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.

133 lines
6.5 KiB

  1. #include "dspch.h"
  2. #pragma hdrstop
  3. #include <wincrypt.h>
  4. #include <cryptui.h>
  5. #include <lenroll.h>
  6. static
  7. BOOL
  8. WINAPI
  9. CryptUIDlgViewCRLW(
  10. IN PCCRYPTUI_VIEWCRL_STRUCTW pcvcrl
  11. )
  12. {
  13. SetLastError(ERROR_PROC_NOT_FOUND);
  14. return FALSE;
  15. }
  16. static
  17. BOOL
  18. WINAPI
  19. CryptUIDlgViewCTLW(
  20. IN PCCRYPTUI_VIEWCTL_STRUCTW pcvctl
  21. )
  22. {
  23. SetLastError(ERROR_PROC_NOT_FOUND);
  24. return FALSE;
  25. }
  26. static
  27. BOOL
  28. WINAPI
  29. CryptUIDlgViewCertificateW(
  30. IN PCCRYPTUI_VIEWCERTIFICATE_STRUCTW pCertViewInfo,
  31. OUT BOOL *pfPropertiesChanged // OPTIONAL
  32. )
  33. {
  34. SetLastError(ERROR_PROC_NOT_FOUND);
  35. return FALSE;
  36. }
  37. static
  38. BOOL
  39. WINAPI
  40. CryptUIWizCertRequest(
  41. IN DWORD dwFlags,
  42. IN OPTIONAL HWND hwndParent,
  43. IN OPTIONAL LPCWSTR pwszWizardTitle,
  44. IN PCCRYPTUI_WIZ_CERT_REQUEST_INFO pCertRequestInfo,
  45. OUT OPTIONAL PCCERT_CONTEXT *ppCertContext,
  46. OUT OPTIONAL DWORD *pCAdwStatus
  47. )
  48. {
  49. SetLastError(ERROR_PROC_NOT_FOUND);
  50. return FALSE;
  51. }
  52. HRESULT WINAPI LocalEnroll( DWORD dwFlags, //IN Required
  53. LPCWSTR pRequestString, // Reserved: must be NULL.
  54. void *pReserved, //IN Optional
  55. BOOL fKeyService, //IN Required: Whether the function is called remotely
  56. DWORD dwPurpose, //IN Required: Whether it is enrollment or renew
  57. BOOL fConfirmation, //IN Required: Set the TRUE if confirmation dialogue is needed
  58. HWND hwndParent, //IN Optional: The parent window
  59. LPWSTR pwszConfirmationTitle, //IN Optional: The title for confirmation dialogue
  60. UINT idsConfirmTitle, //IN Optional: The resource ID for the title of the confirmation dialogue
  61. LPWSTR pwszCALocation, //IN Required: The ca machine name
  62. LPWSTR pwszCAName, //IN Required: The ca name
  63. CERT_BLOB *pCertBlob, //IN Required: The renewed certifcate
  64. CERT_REQUEST_PVK_NEW *pRenewKey, //IN Required: The private key on the certificate
  65. BOOL fNewKey, //IN Required: Set the TRUE if new private key is needed
  66. CERT_REQUEST_PVK_NEW *pKeyNew, //IN Required: The private key information
  67. LPWSTR pwszHashAlg, //IN Optional: The hash algorithm
  68. LPWSTR pwszDesStore, //IN Optional: The destination store
  69. DWORD dwStoreFlags, //IN Optional: The store flags
  70. CERT_ENROLL_INFO *pRequestInfo, //IN Required: The information about the cert request
  71. CERT_BLOB *pPKCS7Blob, //OUT Optional: The PKCS7 from the CA
  72. CERT_BLOB *pHashBlob, //OUT Optioanl: The SHA1 hash of the enrolled/renewed certificate
  73. DWORD *pdwStatus, //OUT Optional: The status of the enrollment/renewal
  74. PCERT_CONTEXT *ppCertContext //OUT Optional: The enrolled certificate
  75. )
  76. {
  77. return HRESULT_FROM_WIN32(ERROR_PROC_NOT_FOUND);
  78. }
  79. HRESULT WINAPI LocalEnrollNoDS( DWORD dwFlags, //IN Required
  80. LPCWSTR pRequestString, // Reserved: must be NULL.
  81. void *pReserved, //IN Optional
  82. BOOL fKeyService, //IN Required: Whether the function is called remotely
  83. DWORD dwPurpose, //IN Required: Whether it is enrollment or renew
  84. BOOL fConfirmation, //IN Required: Set the TRUE if confirmation dialogue is needed
  85. HWND hwndParent, //IN Optional: The parent window
  86. LPWSTR pwszConfirmationTitle, //IN Optional: The title for confirmation dialogue
  87. UINT idsConfirmTitle, //IN Optional: The resource ID for the title of the confirmation dialogue
  88. LPWSTR pwszCALocation, //IN Required: The ca machine name
  89. LPWSTR pwszCAName, //IN Required: The ca name
  90. CERT_BLOB *pCertBlob, //IN Required: The renewed certifcate
  91. CERT_REQUEST_PVK_NEW *pRenewKey, //IN Required: The private key on the certificate
  92. BOOL fNewKey, //IN Required: Set the TRUE if new private key is needed
  93. CERT_REQUEST_PVK_NEW *pKeyNew, //IN Required: The private key information
  94. LPWSTR pwszHashAlg, //IN Optional: The hash algorithm
  95. LPWSTR pwszDesStore, //IN Optional: The destination store
  96. DWORD dwStoreFlags, //IN Optional: The store flags
  97. CERT_ENROLL_INFO *pRequestInfo, //IN Required: The information about the cert request
  98. CERT_BLOB *pPKCS7Blob, //OUT Optional: The PKCS7 from the CA
  99. CERT_BLOB *pHashBlob, //OUT Optioanl: The SHA1 hash of the enrolled/renewed certificate
  100. DWORD *pdwStatus, //OUT Optional: The status of the enrollment/renewal
  101. HANDLE *pResult //IN OUT Optional: The enrolled certificate
  102. )
  103. {
  104. return HRESULT_FROM_WIN32(ERROR_PROC_NOT_FOUND);
  105. }
  106. //
  107. // !! WARNING !! The entries below must be in alphabetical order, and are CASE SENSITIVE (eg lower case comes last!)
  108. //
  109. DEFINE_PROCNAME_ENTRIES(cryptui)
  110. {
  111. DLPENTRY(CryptUIDlgViewCRLW)
  112. DLPENTRY(CryptUIDlgViewCTLW)
  113. DLPENTRY(CryptUIDlgViewCertificateW)
  114. DLPENTRY(CryptUIWizCertRequest)
  115. DLPENTRY(LocalEnroll)
  116. DLPENTRY(LocalEnrollNoDS)
  117. };
  118. DEFINE_PROCNAME_MAP(cryptui)