mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.1 KiB
50 lines
1.1 KiB
#ifndef ASN1HDR
|
|
#define ASN1HDR
|
|
|
|
|
|
|
|
typedef char ossBoolean;
|
|
|
|
typedef char Nulltype;
|
|
|
|
typedef struct {
|
|
short year; /* YYYY format when used for GeneralizedTime */
|
|
/* YY format when used for UTCTime */
|
|
short month;
|
|
short day;
|
|
short hour;
|
|
short minute;
|
|
short second;
|
|
short millisec;
|
|
short mindiff; /* UTC +/- minute differential */
|
|
ossBoolean utc; /* TRUE means UTC time */
|
|
} GeneralizedTime;
|
|
|
|
typedef GeneralizedTime UTCTime;
|
|
|
|
typedef struct {
|
|
int pduNum;
|
|
long length; /* length of encoded */
|
|
void *encoded;
|
|
void *decoded;
|
|
#ifdef OSS_OPENTYPE_HAS_USERFIELD
|
|
void *userField;
|
|
#endif
|
|
} OpenType;
|
|
|
|
enum MixedReal_kind {OSS_BINARY, OSS_DECIMAL};
|
|
|
|
typedef struct {
|
|
enum MixedReal_kind kind;
|
|
union {
|
|
double base2;
|
|
char *base10;
|
|
} u;
|
|
} MixedReal;
|
|
|
|
typedef struct ObjectSetEntry {
|
|
struct ObjectSetEntry *next;
|
|
void *object;
|
|
} ObjectSetEntry;
|
|
|
|
#endif /* #ifndef ASN1HDR */
|