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.

52 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. certupgr.hxx
  5. Abstract:
  6. Declarations for functions used to upgrade K2 server certs to Avalanche server certs
  7. Author:
  8. Alex Mallet (amallet) 02-Dec-1997
  9. --*/
  10. #ifndef _CERTUPGR_HXX_
  11. #define _CERTUPGR_HXX_
  12. //
  13. // NOTE - copied these from credcach.hxx
  14. //
  15. #define SSL_W3_KEYS_MD_PATH "/LM/W3SVC/SSLKEYS"
  16. #define CERT_DER_PREFIX 17
  17. dllexp BOOL UpgradeServerCert( IN IMDCOM *pMDObject,
  18. IN LPTSTR pszOldMBPath,
  19. IN LPTSTR pszNewMBPath );
  20. BOOL CopyMBCertToCAPIStore(IN IMDCOM *pMDObject,
  21. IN LPTSTR pszOldMBPath,
  22. IN LPTSTR pszNewMBPath,
  23. IN HCERTSTORE hStore,
  24. OUT PCCERT_CONTEXT *ppcCertContext);
  25. BOOL DecodeAndImportPrivateKey( PBYTE pbEncodedPrivateKey IN,
  26. DWORD cbEncodedPrivateKey IN,
  27. LPTSTR pszPassword IN,
  28. LPTSTR pszKeyContainer IN,
  29. PCRYPT_KEY_PROV_INFO pCryptKeyProvInfo OUT);
  30. BOOL
  31. GetMDSecret(MB *pMB,
  32. LPSTR pszObj,
  33. DWORD dwId,
  34. UNICODE_STRING **ppusOut);
  35. #endif // _CERTUPGR_HXX_