Source code of Windows XP (NT5)
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.2 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1995.
  5. //
  6. // File: context.h
  7. //
  8. // Contents: Schannel context declarations.
  9. //
  10. // Classes:
  11. //
  12. // Functions:
  13. //
  14. // History: 09-23-97 jbanes Ported over SGC stuff from NT 4 tree.
  15. //
  16. //----------------------------------------------------------------------------
  17. #ifndef __OIDENC_H__
  18. #define __OIDENC_H__
  19. #define szPublicTag ".public"
  20. #define szParamTag ".params"
  21. #define szPrivateTag ".private"
  22. #define MAX_OID_SIZE 64
  23. #define szOID_RSA_RSA_Public szOID_RSA_RSA szPublicTag
  24. #define szOID_INFOSEC_mosaicUpdatedSig_Public szOID_INFOSEC_mosaicUpdatedSig szPublicTag
  25. #define szOID_INFOSEC_mosaicUpdatedSig_Params szOID_INFOSEC_mosaicUpdatedSig szParamTag
  26. #define szOID_INFOSEC_mosaicKMandUpdSig_Public szOID_INFOSEC_mosaicKMandUpdSig szPublicTag
  27. #define szOID_INFOSEC_mosaicKMandUpdSig_Params szOID_INFOSEC_mosaicKMandUpdSig szParamTag
  28. #define szOID_DSA_Public szOID_OIWSEC_dsa szPublicTag
  29. #define szOID_DSA_Params szOID_OIWSEC_dsa szParamTag
  30. #define szOID_X957_DSA_Public szOID_X957_DSA szPublicTag
  31. #define szOID_X957_DSA_Params szOID_X957_DSA szParamTag
  32. #define szOID_RSA_ENCRYPT_RC4_MD5 szOID_RSA_ENCRYPT ".4"
  33. #define szPrivateKeyFileEncode "PrivateKeyFileEncode"
  34. #define szPrivateKeyInfoEncode "PrivateKeyInfoEncode"
  35. #ifndef X509_ENHANCED_KEY_USAGE
  36. #define X509_ENHANCED_KEY_USAGE ((LPCSTR) 36)
  37. typedef struct _CTL_USAGE {
  38. DWORD cUsageIdentifier;
  39. LPSTR *rgpszUsageIdentifier; // array of pszObjId
  40. } CTL_USAGE, *PCTL_USAGE,
  41. CERT_ENHKEY_USAGE, *PCERT_ENHKEY_USAGE;
  42. #endif
  43. #ifndef szOID_ENHANCED_KEY_USAGE
  44. #define szOID_ENHANCED_KEY_USAGE "2.5.29.37"
  45. #endif
  46. #ifndef szOID_SERVER_GATED_CRYPTO
  47. #define szOID_SERVER_GATED_CRYPTO "1.3.6.1.4.1.311.10.3.3"
  48. #endif
  49. #define szOID_NETSCAPE_SGC "2.16.840.1.113730.4.1"
  50. BOOL
  51. WINAPI
  52. InitSchannelAsn1(
  53. HMODULE hModule);
  54. BOOL
  55. WINAPI
  56. ShutdownSchannelAsn1();
  57. typedef struct _PRIVATE_KEY_FILE_ENCODE
  58. {
  59. CRYPT_BIT_BLOB EncryptedBlob;
  60. CRYPT_ALGORITHM_IDENTIFIER Alg;
  61. } PRIVATE_KEY_FILE_ENCODE, *PPRIVATE_KEY_FILE_ENCODE;
  62. #endif // __OIDENC_H__