cert.h 1.5 KB

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