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.

84 lines
2.0 KiB

  1. /* Copyright (C) Microsoft Corporation, 1996 - 1999 All rights reserved. */
  2. /* ASN.1 definitions for SET X509 v3 certificates */
  3. #ifndef _X509_Module_H_
  4. #define _X509_Module_H_
  5. #include "msber.h"
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9. typedef ASN1intx_t HUGEINTEGER;
  10. typedef ASN1bitstring_t BITSTRING;
  11. typedef ASN1octetstring_t OCTETSTRING;
  12. typedef ASN1open_t NOCOPYANY;
  13. typedef ASN1charstring_t NUMERICSTRING;
  14. typedef ASN1charstring_t PRINTABLESTRING;
  15. typedef ASN1charstring_t TELETEXSTRING;
  16. typedef ASN1charstring_t T61STRING;
  17. typedef ASN1charstring_t VIDEOTEXSTRING;
  18. typedef ASN1charstring_t IA5STRING;
  19. typedef ASN1charstring_t GRAPHICSTRING;
  20. typedef ASN1charstring_t VISIBLESTRING;
  21. typedef ASN1charstring_t ISO646STRING;
  22. typedef ASN1charstring_t GENERALSTRING;
  23. typedef ASN1char32string_t UNIVERSALSTRING;
  24. typedef ASN1char16string_t BMPSTRING;
  25. typedef ASN1bool_t SETAccountAlias;
  26. #define SETAccountAlias_PDU 0
  27. #define SIZE_X509_Module_PDU_0 sizeof(SETAccountAlias)
  28. typedef OCTETSTRING SETHashedRootKey;
  29. #define SETHashedRootKey_PDU 1
  30. #define SIZE_X509_Module_PDU_1 sizeof(SETHashedRootKey)
  31. typedef BITSTRING SETCertificateType;
  32. #define SETCertificateType_PDU 2
  33. #define SIZE_X509_Module_PDU_2 sizeof(SETCertificateType)
  34. typedef struct SETMerchantData {
  35. IA5STRING merID;
  36. NUMERICSTRING merAcquirerBIN;
  37. IA5STRING merTermID;
  38. IA5STRING merName;
  39. IA5STRING merCity;
  40. IA5STRING merStateProvince;
  41. IA5STRING merPostalCode;
  42. IA5STRING merCountry;
  43. IA5STRING merPhone;
  44. ASN1bool_t merPhoneRelease;
  45. ASN1bool_t merAuthFlag;
  46. } SETMerchantData;
  47. #define SETMerchantData_PDU 3
  48. #define SIZE_X509_Module_PDU_3 sizeof(SETMerchantData)
  49. extern ASN1module_t X509_Module;
  50. extern void ASN1CALL X509_Module_Startup(void);
  51. extern void ASN1CALL X509_Module_Cleanup(void);
  52. /* Prototypes of element functions for SEQUENCE OF and SET OF constructs */
  53. #ifdef __cplusplus
  54. } /* extern "C" */
  55. #endif
  56. #endif /* _X509_Module_H_ */