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.

62 lines
1.8 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 2000 - 2000
  6. //
  7. // File: csber.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #ifndef __CSBER_H__
  11. #define __CSBER_H__
  12. // tag definitions for ASN.1 encoding decoding:
  13. #define BER_UNIVERSAL 0x00
  14. #define BER_APPLICATION 0x40
  15. #define BER_CONTEXT_SPECIFIC 0x80
  16. #define BER_PRIVATE 0xc0
  17. #define BER_PRIMITIVE 0x00
  18. #define BER_CONSTRUCTED 0x20
  19. #define BER_BOOL 0x01
  20. #define BER_INTEGER 0x02
  21. #define BER_BIT_STRING 0x03
  22. #define BER_OCTET_STRING 0x04
  23. #define BER_NULL 0x05
  24. #define BER_OBJECT_ID 0x06
  25. #define BER_OBJECT_DESC 0x07
  26. #define BER_EXTERNAL 0x08
  27. #define BER_REAL 0x09
  28. #define BER_ENUMERATED 0x0a
  29. #define BER_EMBEDDED_VALUE 0x0b // Embedded presentation data value
  30. #define BER_UTF8_STRING 0x0c
  31. //#define BER_UNKNOWN 0x0d
  32. //#define BER_UNKNOWN 0x0e
  33. //#define BER_UNKNOWN 0x0f
  34. #define BER_SEQUENCE_RAW 0x10
  35. #define BER_SEQUENCE (BER_SEQUENCE_RAW | BER_CONSTRUCTED) // 0x30
  36. #define BER_SET_RAW 0x11
  37. #define BER_SET (BER_SET_RAW | BER_CONSTRUCTED) // 0x31
  38. #define BER_NUMERIC_STRING 0x12
  39. #define BER_PRINTABLE_STRING 0x13
  40. #define BER_TELETEX_STRING 0x14 // Teletex, or T61
  41. #define BER_VIDEOTEX_STRING 0x15
  42. #define BER_IA5_STRING 0x16
  43. #define BER_UTC_TIME 0x17
  44. #define BER_GENERALIZED_TIME 0x18
  45. #define BER_GRAPHIC_STRING 0x19
  46. #define BER_VISIBLE_STRING 0x1a
  47. #define BER_GENERAL_STRING 0x1b
  48. #define BER_UNIVERSAL_STRING 0x1c
  49. //#define BER_UNKNOWN 0x1d
  50. #define BER_UNICODE_STRING 0x1e // BMP: Basic Multilingual Plane
  51. //#define BER_UNKNOWN 0x1f
  52. #define BER_OPTIONAL (BER_CONTEXT_SPECIFIC | BER_CONSTRUCTED) //0xa0
  53. #endif // __CSBER_H__