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.

69 lines
1.6 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. //
  4. // File: ber.h
  5. //
  6. // Contents:
  7. //
  8. // Classes:
  9. //
  10. // Functions:
  11. //
  12. // History: 8-10-95 RichardW Created
  13. //
  14. //----------------------------------------------------------------------------
  15. #ifndef __BER_H__
  16. #define __BER_H__
  17. #define BER_UNIVERSAL 0x00
  18. #define BER_APPLICATION 0x40
  19. #define BER_CONTEXT_SPECIFIC 0x80
  20. #define BER_PRIVATE 0xC0
  21. #define BER_PRIMITIVE 0x00
  22. #define BER_CONSTRUCTED 0x20
  23. #define BER_BOOL 1
  24. #define BER_INTEGER 2
  25. #define BER_BIT_STRING 3
  26. #define BER_OCTET_STRING 4
  27. #define BER_NULL 5
  28. #define BER_OBJECT_ID 6
  29. #define BER_OBJECT_DESC 7
  30. #define BER_EXTERNAL 8
  31. #define BER_REAL 9
  32. #define BER_ENUMERATED 10
  33. #define BER_SEQUENCE 16
  34. #define BER_SET 17
  35. #define BER_NUMERIC_STRING 0x12
  36. #define BER_PRINTABLE_STRING 0x13
  37. #define BER_TELETEX_STRING 0x14
  38. #define BER_VIDEOTEX_STRING 0x15
  39. #define BER_GRAPHIC_STRING 0x19
  40. #define BER_VISIBLE_STRING 0x1A
  41. #define BER_GENERAL_STRING 0x1B
  42. #define BER_UTC_TIME 23
  43. typedef VOID (* OutputFn)(char *, ...);
  44. typedef BOOL (* StopFn)(void);
  45. int
  46. ber_decode(
  47. OutputFn Out,
  48. StopFn Stop,
  49. LPBYTE pBuffer,
  50. DWORD Flags,
  51. int Indent,
  52. int Offset,
  53. int TotalLength,
  54. int BarDepth);
  55. #define DECODE_NEST_OCTET_STRINGS 0x00000001
  56. #define DECODE_VERBOSE_OIDS 0x00000002
  57. #endif