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.

85 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_DH szOID_PKCS_3 ".1"
  24. #define szOID_DH_Public szOID_DH szPublicTag
  25. #define szOID_DH_Params szOID_DH szParamTag
  26. #define szOID_RSA_RSA_Public szOID_RSA_RSA szPublicTag
  27. #define szOID_INFOSEC_mosaicUpdatedSig_Public szOID_INFOSEC_mosaicUpdatedSig szPublicTag
  28. #define szOID_INFOSEC_mosaicUpdatedSig_Params szOID_INFOSEC_mosaicUpdatedSig szParamTag
  29. #define szOID_INFOSEC_mosaicKMandUpdSig_Public szOID_INFOSEC_mosaicKMandUpdSig szPublicTag
  30. #define szOID_INFOSEC_mosaicKMandUpdSig_Params szOID_INFOSEC_mosaicKMandUpdSig szParamTag
  31. #define szOID_DSA_Public szOID_OIWSEC_dsa szPublicTag
  32. #define szOID_DSA_Params szOID_OIWSEC_dsa szParamTag
  33. #define szOID_RSA_ENCRYPT_RC4_MD5 szOID_RSA_ENCRYPT ".4"
  34. #define szPrivateKeyFileEncode "PrivateKeyFileEncode"
  35. #define szPrivateKeyInfoEncode "PrivateKeyInfoEncode"
  36. #ifndef X509_ENHANCED_KEY_USAGE
  37. #define X509_ENHANCED_KEY_USAGE ((LPCSTR) 36)
  38. typedef struct _CTL_USAGE {
  39. DWORD cUsageIdentifier;
  40. LPSTR *rgpszUsageIdentifier; // array of pszObjId
  41. } CTL_USAGE, *PCTL_USAGE,
  42. CERT_ENHKEY_USAGE, *PCERT_ENHKEY_USAGE;
  43. #endif
  44. #ifndef szOID_ENHANCED_KEY_USAGE
  45. #define szOID_ENHANCED_KEY_USAGE "2.5.29.37"
  46. #endif
  47. #ifndef szOID_SERVER_GATED_CRYPTO
  48. #define szOID_SERVER_GATED_CRYPTO "1.3.6.1.4.1.311.10.3.3"
  49. #endif
  50. #define szOID_NETSCAPE_SGC "2.16.840.1.113730.4.1"
  51. BOOL
  52. WINAPI
  53. InitSchannelOSS(
  54. HMODULE hModule);
  55. typedef struct _PRIVATE_KEY_FILE_ENCODE
  56. {
  57. CRYPT_BIT_BLOB EncryptedBlob;
  58. CRYPT_ALGORITHM_IDENTIFIER Alg;
  59. } PRIVATE_KEY_FILE_ENCODE, *PPRIVATE_KEY_FILE_ENCODE;
  60. #endif // __OIDENC_H__