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.

163 lines
3.8 KiB

  1. #ifndef ASN1HDR
  2. #define ASN1HDR
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif
  6. /*****************************************************************************/
  7. /* Copyright (C) 1989-1999 Open Systems Solutions, Inc. All rights reserved.*/
  8. /*****************************************************************************/
  9. /* THIS FILE IS PROPRIETARY MATERIAL OF OPEN SYSTEMS SOLUTIONS, INC.
  10. * AND MAY BE USED ONLY BY DIRECT LICENSEES OF OPEN SYSTEMS SOLUTIONS, INC.
  11. * THIS FILE MAY NOT BE DISTRIBUTED. */
  12. /* @(#)asn1hdr.h: stdtypes.c 5.15 97/04/29 */
  13. /*****************************************************************************/
  14. /* COMPILER-GENERATED values */
  15. /*****************************************************************************/
  16. #include <float.h>
  17. extern int ossFreeOpenTypeEncoding;
  18. #ifdef __BORLANDC__
  19. #undef DBL_MAX
  20. #include <values.h>
  21. #define DBL_MAX MAXDOUBLE
  22. #endif
  23. #ifndef NULL
  24. #ifdef __cplusplus
  25. #define NULL 0
  26. #else
  27. #define NULL ((void*)0)
  28. #endif
  29. #endif
  30. #ifndef DBL_MAX
  31. #ifdef HUGE_VAL
  32. #define DBL_MAX HUGE_VAL
  33. #else
  34. #ifdef HUGE
  35. #define DBL_MAX HUGE
  36. #endif
  37. #endif
  38. #endif
  39. #ifndef FLT_MAX
  40. #define FLT_MAX DBL_MAX
  41. #endif
  42. #ifndef FLT_RADIX
  43. #ifdef u370
  44. #define FLT_RADIX 16
  45. #else
  46. #define FLT_RADIX 2
  47. #endif
  48. #endif
  49. #ifndef EXIT_FAILURE
  50. #define EXIT_FAILURE 1
  51. #endif
  52. #ifndef EXIT_SUCCESS
  53. #define EXIT_SUCCESS 0
  54. #endif
  55. /*****************************************************************************/
  56. /* COMPILER-GENERATED typedefs */
  57. /*****************************************************************************/
  58. #ifndef __cplusplus
  59. #define _union
  60. #endif
  61. #ifndef LONG_LONG
  62. #ifdef _MSC_VER
  63. #define LONG_LONG __int64
  64. #elif defined(__IBMC__)
  65. #define LONG_LONG long long
  66. #else
  67. #define LONG_LONG long
  68. #endif
  69. #endif
  70. #ifndef ULONG_LONG
  71. #ifdef _MSC_VER
  72. #define ULONG_LONG unsigned __int64
  73. #elif defined(__IBMC__)
  74. #define ULONG_LONG unsigned long long
  75. #else
  76. #define ULONG_LONG unsigned long
  77. #endif
  78. #endif
  79. typedef char ossBoolean;
  80. #ifndef TRUE
  81. #define TRUE 1
  82. #endif
  83. #ifndef FALSE
  84. #define FALSE 0
  85. #endif
  86. typedef char Nulltype;
  87. typedef struct {
  88. short year; /* YYYY format when used for GeneralizedTime */
  89. /* YY format when used for UTCTime */
  90. short month;
  91. short day;
  92. short hour;
  93. short minute;
  94. short second;
  95. short millisec;
  96. short mindiff; /* UTC +/- minute differential */
  97. ossBoolean utc; /* TRUE means UTC time */
  98. } GeneralizedTime;
  99. typedef GeneralizedTime UTCTime;
  100. typedef struct {
  101. int pduNum;
  102. long length; /* length of encoded */
  103. void *encoded;
  104. void *decoded;
  105. #ifdef OSS_OPENTYPE_HAS_USERFIELD
  106. void *userField;
  107. #endif
  108. } OpenType;
  109. enum MixedReal_kind {OSS_BINARY, OSS_DECIMAL};
  110. typedef struct {
  111. enum MixedReal_kind kind;
  112. union {
  113. double base2;
  114. char *base10;
  115. } u;
  116. } MixedReal;
  117. typedef struct ObjectSetEntry {
  118. struct ObjectSetEntry *next;
  119. void *object;
  120. } ObjectSetEntry;
  121. #ifndef _OSAK_BUFFER_
  122. #define _OSAK_BUFFER_
  123. typedef struct osak_buffer {
  124. struct osak_buffer *next; /* next element in list */
  125. unsigned char *buffer_ptr; /* start of actual buffer */
  126. unsigned long int buffer_length; /* size of actual buffer */
  127. unsigned char *data_ptr; /* start of user data */
  128. unsigned long int data_length; /* length of user data */
  129. unsigned long int reserved [4];
  130. } osak_buffer;
  131. #endif /* #ifndef _OSAK_BUFFER_ */
  132. #endif /* #ifndef ASN1HDR */