1 #ifndef __CERT 2 #define __CERT 3 4 #include <default.h> 5 6 /* Begin Auto-Generated Part */ 7 #define H_NULL 0 8 #define NULL ((void*)0) 9 #ifndef __HAVE_Bool 10 #define __HAVE_Bool 11 enum Bool{FALSE,TRUE}; 12 #endif 13 #ifndef __HAVE_HANDLE 14 #define __HAVE_HANDLE 15 typedef unsigned short HANDLE; 16 #endif 17 #ifndef __HAVE_size_t 18 #define __HAVE_size_t 19 typedef unsigned long size_t; 20 #endif 21 typedef struct{unsigned short Field;unsigned short HdrLen;unsigned long Len;void*Data;}CERT_FIELD; 22 typedef struct{void*Start,*Pos,*End;short EOFVal;}CFILE; 23 #define ceof _rom_call(short,(CFILE*),128) 24 #define cfindfield _rom_call(short,(CFILE*,short,CERT_FIELD*),12A) 25 #define cgetc _rom_call(unsigned char,(CFILE*),12B) 26 #define cgetcertrevno _rom_call(short,(__plong),2A0) 27 #define cgetflen _rom_call(unsigned long,(CFILE*,short),12D) 28 #define cgetfnl _rom_call(long,(CERT_FIELD*),12E) 29 #define cgetnl _rom_call(long,(CFILE*),12F) 30 #define cgetns _rom_call(short,(CFILE*),130) 31 #define cgetsn _rom_call(void,(char*),2A1) 32 #define copen _rom_call(void,(CFILE*,char*,long),132) 33 #define copensub _rom_call(void,(CFILE*,CERT_FIELD*),133) 34 #define cputhdr _rom_call(short,(CFILE*,short,short),134) 35 #define cputnl _rom_call(void,(CFILE*,long),135) 36 #define cputns _rom_call(void,(CFILE*,short),136) 37 #define cread _rom_call(short,(CFILE*,CERT_FIELD*),137) 38 #define ctell _rom_call(unsigned long,(CFILE*),138) 39 #define cwrite _rom_call(short,(CFILE*,CERT_FIELD*),139) 40 #if MIN_AMS>=200 41 #define CertificateMemory ((unsigned char*const)(_rom_call_addr(43E))) 42 #endif 43 /* End Auto-Generated Part */ 44 45 #endif 46