Leaked source code of windows server 2003
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.

95 lines
2.7 KiB

  1. /*******************************************************************************
  2. * Copyright (c) 1998 Gemplus Development
  3. *
  4. * Name : CCDEF.H
  5. *
  6. * Description : Common definition for Compert utility.
  7. *
  8. Author : Laurent CASSIER
  9. Compiler : Microsoft Visual C 1.5x/2.0
  10. ANSI C UNIX.
  11. Host : IBM PC and compatible machines under Windows 3.x.
  12. UNIX machine.
  13. * Release : 1.00.001
  14. *
  15. * Last Modif. : 04/03/98: V1.00.001 - First implementation.
  16. *
  17. ********************************************************************************
  18. *
  19. * Warning :
  20. *
  21. * Remark :
  22. *
  23. *******************************************************************************/
  24. /*------------------------------------------------------------------------------
  25. Name definition:
  26. _CCDEF_H is used to avoid multiple inclusion.
  27. ------------------------------------------------------------------------------*/
  28. #ifndef _CCDEF_H
  29. #define _CCDEF_H
  30. #ifndef _WINDOWS
  31. typedef unsigned short USHORT;
  32. typedef unsigned long ULONG;
  33. typedef unsigned char BYTE;
  34. #endif
  35. #define NULL_PTR 0
  36. #define ABSENT_PARAMETER_CHAR 0x7F
  37. #define ESCAPE_CHAR 0xFF
  38. #define TAG_COMPRESSION_FAILED 0xFF
  39. #define ALGO_NONE 0
  40. #define ALGO_ACFX8 1 /* Arithmetic coding, byte oriented, fixed model */
  41. #define ALGO_ACAD8 2 /* Arithmetic coding, byte oriented, adaptative model */
  42. #define ALGO_3 3 /* RFU */
  43. #define ALGO_4 4 /* RFU */
  44. #define ALGO_5 5 /* RFU */
  45. #define ALGO_6 6 /* RFU */
  46. #define ALGO_7 7 /* RFU */
  47. #define MAX_RDN 255
  48. #define MAX_AVA 255
  49. #define MAX_EXTENSION 255
  50. #define TAG_INTEGER 0x02
  51. #define TAG_BIT_STRING 0x03
  52. #define TAG_OBJECT_IDENTIFIER 0x06
  53. #define TAG_UTCT 0x17
  54. #define TAG_SEQUENCE 0x30
  55. #define TAG_SEQUENCE_OF 0x30
  56. #define TAG_SET 0x31
  57. #define TAG_SET_OF 0x31
  58. #define TAG_OPTION_VERSION 0xA0
  59. #define TAG_OPTION_ISSUER_UID 0xA1
  60. #define TAG_OPTION_SUBJECT_UID 0xA2
  61. #define TAG_OPTION_EXTENSIONS 0xA3
  62. #define UTCT_YYMMDDhhmmZ 0
  63. #define UTCT_YYMMDDhhmmphhmm 1
  64. #define UTCT_YYMMDDhhmmmhhmm 2
  65. #define UTCT_YYMMDDhhmmssZ 3
  66. #define UTCT_YYMMDDhhmmssphhmm 4
  67. #define UTCT_YYMMDDhhmmssmhhmm 5
  68. #define UTCT_MINUTE_IN_YEAR 525600
  69. #define UTCT_MINUTE_IN_DAY 1440
  70. #define UTCT_MINUTE_IN_HOUR 60
  71. #define UTCT_SECOND_IN_YEAR 31536000
  72. #define UTCT_SECOND_IN_DAY 86400
  73. #define UTCT_SECOND_IN_HOUR 3600
  74. #define UTCT_SECOND_IN_MINUTE 60
  75. /*
  76. * Define the ASSERT macro
  77. */
  78. #define ASSERT(x)
  79. #endif