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.

990 lines
19 KiB

  1. #include "dspch.h"
  2. #pragma hdrstop
  3. #define _CRYPT32_
  4. #include <wincrypt.h>
  5. static
  6. WINCRYPT32API
  7. BOOL
  8. WINAPI
  9. CertAddCertificateContextToStore(
  10. IN HCERTSTORE hCertStore,
  11. IN PCCERT_CONTEXT pCertContext,
  12. IN DWORD dwAddDisposition,
  13. OUT OPTIONAL PCCERT_CONTEXT *ppStoreContext
  14. )
  15. {
  16. SetLastError(ERROR_PROC_NOT_FOUND);
  17. return FALSE;
  18. }
  19. static
  20. WINCRYPT32API
  21. BOOL
  22. WINAPI
  23. CertAddEncodedCertificateToStore(
  24. IN HCERTSTORE hCertStore,
  25. IN DWORD dwCertEncodingType,
  26. IN const BYTE *pbCertEncoded,
  27. IN DWORD cbCertEncoded,
  28. IN DWORD dwAddDisposition,
  29. OUT OPTIONAL PCCERT_CONTEXT *ppCertContext
  30. )
  31. {
  32. SetLastError(ERROR_PROC_NOT_FOUND);
  33. return FALSE;
  34. }
  35. static
  36. WINCRYPT32API
  37. BOOL
  38. WINAPI
  39. CertCloseStore(
  40. IN HCERTSTORE hCertStore,
  41. DWORD dwFlags
  42. )
  43. {
  44. SetLastError(ERROR_PROC_NOT_FOUND);
  45. return FALSE;
  46. }
  47. static
  48. WINCRYPT32API
  49. BOOL
  50. WINAPI
  51. CertCompareCertificate(
  52. IN DWORD dwCertEncodingType,
  53. IN PCERT_INFO pCertId1,
  54. IN PCERT_INFO pCertId2
  55. )
  56. {
  57. SetLastError(ERROR_PROC_NOT_FOUND);
  58. return FALSE;
  59. }
  60. static
  61. WINCRYPT32API
  62. BOOL
  63. WINAPI
  64. CertCompareCertificateName(
  65. IN DWORD dwCertEncodingType,
  66. IN PCERT_NAME_BLOB pCertName1,
  67. IN PCERT_NAME_BLOB pCertName2
  68. )
  69. {
  70. SetLastError(ERROR_PROC_NOT_FOUND);
  71. return FALSE;
  72. }
  73. static
  74. WINCRYPT32API
  75. BOOL
  76. WINAPI
  77. CertControlStore(
  78. IN HCERTSTORE hCertStore,
  79. IN DWORD dwFlags,
  80. IN DWORD dwCtrlType,
  81. IN void const *pvCtrlPara
  82. )
  83. {
  84. SetLastError(ERROR_PROC_NOT_FOUND);
  85. return FALSE;
  86. }
  87. static
  88. WINCRYPT32API
  89. PCCERT_CONTEXT
  90. WINAPI
  91. CertCreateCertificateContext(
  92. IN DWORD dwCertEncodingType,
  93. IN const BYTE *pbCertEncoded,
  94. IN DWORD cbCertEncoded
  95. )
  96. {
  97. SetLastError(ERROR_PROC_NOT_FOUND);
  98. return NULL;
  99. }
  100. static
  101. WINCRYPT32API
  102. PCCTL_CONTEXT
  103. WINAPI
  104. CertCreateCTLContext(
  105. DWORD dwMsgAndCertEncodingType,
  106. const BYTE *pbCtlEncoded,
  107. DWORD cbCtlEncoded
  108. )
  109. {
  110. SetLastError(ERROR_PROC_NOT_FOUND);
  111. return NULL;
  112. }
  113. static
  114. WINCRYPT32API
  115. BOOL
  116. WINAPI
  117. CertDeleteCertificateFromStore(
  118. IN PCCERT_CONTEXT pCertContext
  119. )
  120. {
  121. SetLastError(ERROR_PROC_NOT_FOUND);
  122. return FALSE;
  123. }
  124. static
  125. WINCRYPT32API
  126. PCCERT_CONTEXT
  127. WINAPI
  128. CertCreateSelfSignCertificate(
  129. IN HCRYPTPROV hProv,
  130. IN PCERT_NAME_BLOB pSubjectIssuerBlob,
  131. IN DWORD dwFlags,
  132. OPTIONAL PCRYPT_KEY_PROV_INFO pKeyProvInfo,
  133. OPTIONAL PCRYPT_ALGORITHM_IDENTIFIER pSignatureAlgorithm,
  134. OPTIONAL PSYSTEMTIME pStartTime,
  135. OPTIONAL PSYSTEMTIME pEndTime,
  136. OPTIONAL PCERT_EXTENSIONS pExtensions
  137. )
  138. {
  139. SetLastError(ERROR_PROC_NOT_FOUND);
  140. return FALSE;
  141. }
  142. static
  143. WINCRYPT32API
  144. PCCERT_CONTEXT
  145. WINAPI
  146. CertDuplicateCertificateContext(
  147. IN PCCERT_CONTEXT pCertContext
  148. )
  149. {
  150. SetLastError(ERROR_PROC_NOT_FOUND);
  151. return FALSE;
  152. }
  153. static
  154. WINCRYPT32API
  155. PCCTL_CONTEXT
  156. WINAPI
  157. CertDuplicateCTLContext(
  158. IN PCCTL_CONTEXT pCtlContext
  159. )
  160. {
  161. SetLastError(ERROR_PROC_NOT_FOUND);
  162. return FALSE;
  163. }
  164. static
  165. WINCRYPT32API
  166. PCCERT_CONTEXT
  167. WINAPI
  168. CertEnumCertificatesInStore(
  169. IN HCERTSTORE hCertStore,
  170. IN PCCERT_CONTEXT pPrevCertContext
  171. )
  172. {
  173. SetLastError(ERROR_PROC_NOT_FOUND);
  174. return NULL;
  175. }
  176. static
  177. WINCRYPT32API
  178. BOOL
  179. WINAPI
  180. CertFreeCertificateContext (
  181. IN PCCERT_CONTEXT pCertContext
  182. )
  183. {
  184. SetLastError(ERROR_PROC_NOT_FOUND);
  185. return FALSE;
  186. }
  187. static
  188. WINCRYPT32API
  189. PCCERT_CONTEXT
  190. WINAPI
  191. CertFindCertificateInStore(
  192. IN HCERTSTORE hCertStore,
  193. IN DWORD dwCertEncodingType,
  194. IN DWORD dwFindFlags,
  195. IN DWORD dwFindType,
  196. IN const void *pvFindPara,
  197. IN PCCERT_CONTEXT pPrevCertContext
  198. )
  199. {
  200. SetLastError(ERROR_PROC_NOT_FOUND);
  201. return NULL;
  202. }
  203. static
  204. WINCRYPT32API
  205. PCCTL_CONTEXT
  206. WINAPI
  207. CertFindCTLInStore(
  208. IN HCERTSTORE hCertStore,
  209. IN DWORD dwMsgAndCertEncodingType,
  210. IN DWORD dwFindFlags,
  211. IN DWORD dwFindType,
  212. IN const void *pvFindPara,
  213. IN PCCTL_CONTEXT pPrevCtlContext
  214. )
  215. {
  216. SetLastError(ERROR_PROC_NOT_FOUND);
  217. return NULL;
  218. }
  219. static
  220. WINCRYPT32API
  221. PCERT_EXTENSION
  222. WINAPI
  223. CertFindExtension(
  224. IN LPCSTR pszObjId,
  225. IN DWORD cExtensions,
  226. IN CERT_EXTENSION rgExtensions[]
  227. )
  228. {
  229. SetLastError(ERROR_PROC_NOT_FOUND);
  230. return NULL;
  231. }
  232. static
  233. WINCRYPT32API
  234. PCTL_ENTRY
  235. WINAPI
  236. CertFindSubjectInCTL(
  237. DWORD dwEncodingType,
  238. DWORD dwSubjectType,
  239. void *pvSubject,
  240. PCCTL_CONTEXT pCtlContext,
  241. DWORD dwFlags
  242. )
  243. {
  244. SetLastError(ERROR_PROC_NOT_FOUND);
  245. return FALSE;
  246. }
  247. static
  248. WINCRYPT32API
  249. VOID
  250. WINAPI
  251. CertFreeCertificateChain (
  252. IN PCCERT_CHAIN_CONTEXT pChainContext
  253. )
  254. {
  255. NOTHING;
  256. }
  257. static
  258. WINCRYPT32API
  259. BOOL
  260. WINAPI
  261. CertFreeCTLContext(
  262. IN PCCTL_CONTEXT pCtlContext
  263. )
  264. {
  265. SetLastError(ERROR_PROC_NOT_FOUND);
  266. return FALSE;
  267. }
  268. static
  269. WINCRYPT32API
  270. BOOL
  271. WINAPI
  272. CertGetCertificateChain (
  273. IN OPTIONAL HCERTCHAINENGINE hChainEngine,
  274. IN PCCERT_CONTEXT pCertContext,
  275. IN OPTIONAL LPFILETIME pTime,
  276. IN OPTIONAL HCERTSTORE hAdditionalStore,
  277. IN PCERT_CHAIN_PARA pChainPara,
  278. IN DWORD dwFlags,
  279. IN LPVOID pvReserved,
  280. OUT PCCERT_CHAIN_CONTEXT* ppChainContext
  281. )
  282. {
  283. SetLastError(ERROR_PROC_NOT_FOUND);
  284. return FALSE;
  285. }
  286. static
  287. WINCRYPT32API
  288. BOOL
  289. WINAPI
  290. CertGetCertificateContextProperty(
  291. IN PCCERT_CONTEXT pCertContext,
  292. IN DWORD dwPropId,
  293. OUT void *pvData,
  294. IN OUT DWORD *pcbData
  295. )
  296. {
  297. SetLastError(ERROR_PROC_NOT_FOUND);
  298. return FALSE;
  299. }
  300. static
  301. WINCRYPT32API
  302. BOOL
  303. WINAPI
  304. CertGetEnhancedKeyUsage (
  305. IN PCCERT_CONTEXT pCertContext,
  306. IN DWORD dwFlags,
  307. OUT PCERT_ENHKEY_USAGE pUsage,
  308. IN OUT DWORD* pcbUsage
  309. )
  310. {
  311. SetLastError(ERROR_PROC_NOT_FOUND);
  312. return FALSE;
  313. }
  314. static
  315. WINCRYPT32API
  316. PCCERT_CONTEXT
  317. WINAPI
  318. CertGetIssuerCertificateFromStore(
  319. IN HCERTSTORE hCertStore,
  320. IN PCCERT_CONTEXT pSubjectContext,
  321. IN OPTIONAL PCCERT_CONTEXT pPrevIssuerContext,
  322. IN OUT DWORD *pdwFlags
  323. )
  324. {
  325. SetLastError(ERROR_PROC_NOT_FOUND);
  326. return NULL;
  327. }
  328. static
  329. WINCRYPT32API
  330. DWORD
  331. WINAPI
  332. CertGetPublicKeyLength(
  333. DWORD dwCertEncodingType,
  334. PCERT_PUBLIC_KEY_INFO pPublicKey
  335. )
  336. {
  337. SetLastError(ERROR_PROC_NOT_FOUND);
  338. return 0;
  339. }
  340. static
  341. WINCRYPT32API
  342. DWORD
  343. WINAPI
  344. CertNameToStrW(
  345. IN DWORD dwCertEncodingType,
  346. IN PCERT_NAME_BLOB pName,
  347. IN DWORD dwStrType,
  348. OUT OPTIONAL LPWSTR psz,
  349. IN DWORD csz
  350. )
  351. {
  352. SetLastError(ERROR_PROC_NOT_FOUND);
  353. return FALSE;
  354. }
  355. static
  356. WINCRYPT32API
  357. HCERTSTORE
  358. WINAPI
  359. CertOpenStore(
  360. IN LPCSTR lpszStoreProvider,
  361. IN DWORD dwEncodingType,
  362. IN HCRYPTPROV hCryptProv,
  363. IN DWORD dwFlags,
  364. IN const void *pvPara
  365. )
  366. {
  367. SetLastError(ERROR_PROC_NOT_FOUND);
  368. return NULL;
  369. }
  370. static
  371. WINCRYPT32API
  372. HCERTSTORE
  373. WINAPI
  374. CertOpenSystemStoreW(
  375. HCRYPTPROV hProv,
  376. const WCHAR * wcsSubsystemProtocol
  377. )
  378. {
  379. SetLastError(ERROR_PROC_NOT_FOUND);
  380. return NULL;
  381. }
  382. static
  383. WINCRYPT32API
  384. BOOL
  385. WINAPI
  386. CertRegisterPhysicalStore(
  387. IN const void *pvSystemStore,
  388. IN DWORD dwFlags,
  389. IN LPCWSTR pwszStoreName,
  390. IN PCERT_PHYSICAL_STORE_INFO pStoreInfo,
  391. IN OPTIONAL void *pvReserved
  392. )
  393. {
  394. SetLastError(ERROR_PROC_NOT_FOUND);
  395. return FALSE;
  396. }
  397. static
  398. WINCRYPT32API
  399. DWORD
  400. WINAPI
  401. CertRDNValueToStrW(
  402. IN DWORD dwValueType,
  403. IN PCERT_RDN_VALUE_BLOB pValue,
  404. OUT OPTIONAL LPWSTR psz,
  405. IN DWORD csz
  406. )
  407. {
  408. SetLastError(ERROR_PROC_NOT_FOUND);
  409. return 0;
  410. }
  411. static
  412. WINCRYPT32API
  413. BOOL
  414. WINAPI
  415. CertSetCertificateContextProperty(
  416. IN PCCERT_CONTEXT pCertContext,
  417. IN DWORD dwPropId,
  418. IN DWORD dwFlags,
  419. IN const void *pvData
  420. )
  421. {
  422. SetLastError(ERROR_PROC_NOT_FOUND);
  423. return FALSE;
  424. }
  425. static
  426. WINCRYPT32API
  427. BOOL
  428. WINAPI
  429. CertStrToNameW(
  430. IN DWORD dwCertEncodingType,
  431. IN LPCWSTR pszX500,
  432. IN DWORD dwStrType,
  433. IN OPTIONAL void *pvReserved,
  434. OUT BYTE *pbEncoded,
  435. IN OUT DWORD *pcbEncoded,
  436. OUT OPTIONAL LPCWSTR *ppszError
  437. )
  438. {
  439. SetLastError(ERROR_PROC_NOT_FOUND);
  440. return FALSE;
  441. }
  442. static
  443. WINCRYPT32API
  444. BOOL
  445. WINAPI
  446. CertVerifyCertificateChainPolicy(
  447. IN LPCSTR pszPolicyOID,
  448. IN PCCERT_CHAIN_CONTEXT pChainContext,
  449. IN PCERT_CHAIN_POLICY_PARA pPolicyPara,
  450. IN OUT PCERT_CHAIN_POLICY_STATUS pPolicyStatus
  451. )
  452. {
  453. SetLastError(ERROR_PROC_NOT_FOUND);
  454. return FALSE;
  455. }
  456. static
  457. WINCRYPT32API
  458. BOOL
  459. WINAPI
  460. CertVerifySubjectCertificateContext(
  461. IN PCCERT_CONTEXT pSubject,
  462. IN OPTIONAL PCCERT_CONTEXT pIssuer,
  463. IN OUT DWORD *pdwFlags
  464. )
  465. {
  466. SetLastError(ERROR_PROC_NOT_FOUND);
  467. return FALSE;
  468. }
  469. static
  470. WINCRYPT32API
  471. LONG
  472. WINAPI
  473. CertVerifyTimeValidity(
  474. IN LPFILETIME pTimeToVerify,
  475. IN PCERT_INFO pCertInfo
  476. )
  477. {
  478. SetLastError(ERROR_PROC_NOT_FOUND);
  479. return FALSE;
  480. }
  481. static
  482. WINCRYPT32API
  483. BOOL
  484. WINAPI
  485. CryptAcquireCertificatePrivateKey(
  486. IN PCCERT_CONTEXT pCert,
  487. IN DWORD dwFlags,
  488. IN void *pvReserved,
  489. OUT HCRYPTPROV *phCryptProv,
  490. OUT OPTIONAL DWORD *pdwKeySpec,
  491. OUT OPTIONAL BOOL *pfCallerFreeProv
  492. )
  493. {
  494. SetLastError(ERROR_PROC_NOT_FOUND);
  495. return FALSE;
  496. }
  497. static
  498. WINCRYPT32STRINGAPI
  499. BOOL
  500. WINAPI
  501. CryptBinaryToStringW(
  502. IN CONST BYTE *pbBinary,
  503. IN DWORD cbBinary,
  504. IN DWORD dwFlags,
  505. IN LPWSTR pszString,
  506. IN OUT DWORD *pcchString
  507. )
  508. {
  509. SetLastError(ERROR_PROC_NOT_FOUND);
  510. return FALSE;
  511. }
  512. static
  513. WINCRYPT32API
  514. BOOL
  515. WINAPI
  516. CryptDecodeObject(
  517. IN DWORD dwCertEncodingType,
  518. IN LPCSTR lpszStructType,
  519. IN const BYTE *pbEncoded,
  520. IN DWORD cbEncoded,
  521. IN DWORD dwFlags,
  522. OUT void *pvStructInfo,
  523. IN OUT DWORD *pcbStructInfo
  524. )
  525. {
  526. SetLastError(ERROR_PROC_NOT_FOUND);
  527. return FALSE;
  528. }
  529. static
  530. WINCRYPT32API
  531. BOOL
  532. WINAPI
  533. CryptDecodeObjectEx(
  534. IN DWORD dwCertEncodingType,
  535. IN LPCSTR lpszStructType,
  536. IN const BYTE *pbEncoded,
  537. IN DWORD cbEncoded,
  538. IN DWORD dwFlags,
  539. IN OPTIONAL PCRYPT_DECODE_PARA pDecodePara,
  540. OUT OPTIONAL void *pvStructInfo,
  541. IN OUT DWORD *pcbStructInfo
  542. )
  543. {
  544. SetLastError(ERROR_PROC_NOT_FOUND);
  545. return FALSE;
  546. }
  547. static
  548. WINCRYPT32API
  549. BOOL
  550. WINAPI
  551. CryptDecryptMessage(
  552. IN PCRYPT_DECRYPT_MESSAGE_PARA pDecryptPara,
  553. IN const BYTE *pbEncryptedBlob,
  554. IN DWORD cbEncryptedBlob,
  555. OUT OPTIONAL BYTE *pbDecrypted,
  556. IN OUT OPTIONAL DWORD *pcbDecrypted,
  557. OUT OPTIONAL PCCERT_CONTEXT *ppXchgCert
  558. )
  559. {
  560. SetLastError(ERROR_PROC_NOT_FOUND);
  561. return FALSE;
  562. }
  563. static
  564. WINCRYPT32API
  565. BOOL
  566. WINAPI
  567. CryptEncodeObject(
  568. IN DWORD dwCertEncodingType,
  569. IN LPCSTR lpszStructType,
  570. IN const void *pvStructInfo,
  571. OUT OPTIONAL BYTE *pbEncoded,
  572. IN OUT DWORD *pcbEncoded
  573. )
  574. {
  575. SetLastError(ERROR_PROC_NOT_FOUND);
  576. return FALSE;
  577. }
  578. static
  579. WINCRYPT32API
  580. BOOL
  581. WINAPI
  582. CryptEncodeObjectEx(
  583. IN DWORD dwCertEncodingType,
  584. IN LPCSTR lpszStructType,
  585. IN const void *pvStructInfo,
  586. IN DWORD dwFlags,
  587. IN OPTIONAL PCRYPT_ENCODE_PARA pEncodePara,
  588. OUT void *pvEncoded,
  589. IN OUT DWORD *pcbEncoded
  590. )
  591. {
  592. SetLastError(ERROR_PROC_NOT_FOUND);
  593. return FALSE;
  594. }
  595. static
  596. WINCRYPT32API
  597. BOOL
  598. WINAPI
  599. CryptEncryptMessage(
  600. IN PCRYPT_ENCRYPT_MESSAGE_PARA pEncryptPara,
  601. IN DWORD cRecipientCert,
  602. IN PCCERT_CONTEXT rgpRecipientCert[],
  603. IN const BYTE *pbToBeEncrypted,
  604. IN DWORD cbToBeEncrypted,
  605. OUT BYTE *pbEncryptedBlob,
  606. IN OUT DWORD *pcbEncryptedBlob
  607. )
  608. {
  609. SetLastError(ERROR_PROC_NOT_FOUND);
  610. return FALSE;
  611. }
  612. static
  613. WINCRYPT32API
  614. BOOL
  615. WINAPI
  616. CryptExportPublicKeyInfo(
  617. IN HCRYPTPROV hCryptProv,
  618. IN DWORD dwKeySpec,
  619. IN DWORD dwCertEncodingType,
  620. OUT PCERT_PUBLIC_KEY_INFO pInfo,
  621. IN OUT DWORD *pcbInfo
  622. )
  623. {
  624. SetLastError(ERROR_PROC_NOT_FOUND);
  625. return FALSE;
  626. }
  627. static
  628. WINCRYPT32API
  629. BOOL
  630. WINAPI
  631. CryptFormatObject(
  632. IN DWORD dwCertEncodingType,
  633. IN DWORD dwFormatType,
  634. IN DWORD dwFormatStrType,
  635. IN void *pFormatStruct,
  636. IN LPCSTR lpszStructType,
  637. IN const BYTE *pbEncoded,
  638. IN DWORD cbEncoded,
  639. OUT void *pbFormat,
  640. IN OUT DWORD *pcbFormat
  641. )
  642. {
  643. SetLastError(ERROR_PROC_NOT_FOUND);
  644. return FALSE;
  645. }
  646. static
  647. WINCRYPT32API
  648. DWORD
  649. WINAPI
  650. CertGetNameStringW(
  651. IN PCCERT_CONTEXT pCertContext,
  652. IN DWORD dwType,
  653. IN DWORD dwFlags,
  654. IN void *pvTypePara,
  655. OUT OPTIONAL LPWSTR pszNameString,
  656. IN DWORD cchNameString
  657. )
  658. {
  659. SetLastError(ERROR_PROC_NOT_FOUND);
  660. return 0;
  661. }
  662. static
  663. WINCRYPT32API
  664. BOOL
  665. WINAPI
  666. CryptHashPublicKeyInfo(
  667. IN HCRYPTPROV hCryptProv,
  668. IN ALG_ID Algid,
  669. IN DWORD dwFlags,
  670. IN DWORD dwCertEncodingType,
  671. IN PCERT_PUBLIC_KEY_INFO pInfo,
  672. OUT BYTE *pbComputedHash,
  673. IN OUT DWORD *pcbComputedHash
  674. )
  675. {
  676. SetLastError(ERROR_PROC_NOT_FOUND);
  677. return FALSE;
  678. }
  679. static
  680. WINCRYPT32API
  681. BOOL
  682. WINAPI
  683. CryptImportPublicKeyInfo(
  684. IN HCRYPTPROV hCryptProv,
  685. IN DWORD dwCertEncodingType,
  686. IN PCERT_PUBLIC_KEY_INFO pInfo,
  687. OUT HCRYPTKEY *phKey
  688. )
  689. {
  690. SetLastError(ERROR_PROC_NOT_FOUND);
  691. return FALSE;
  692. }
  693. static
  694. WINCRYPT32API
  695. BOOL
  696. WINAPI
  697. CryptImportPublicKeyInfoEx(
  698. HCRYPTPROV hCryptProv,
  699. DWORD dwCertEncodingType,
  700. PCERT_PUBLIC_KEY_INFO pInfo,
  701. ALG_ID aiKeyAlg,
  702. DWORD dwFlags,
  703. void *pvAuxInfo,
  704. HCRYPTKEY *phKey
  705. )
  706. {
  707. SetLastError(ERROR_PROC_NOT_FOUND);
  708. return FALSE;
  709. }
  710. static
  711. WINCRYPT32API
  712. BOOL
  713. WINAPI
  714. CryptMsgGetAndVerifySigner(
  715. HCRYPTMSG hCryptMsg,
  716. DWORD cSignerStore,
  717. HCERTSTORE *rghSignerStore,
  718. DWORD dwFlags,
  719. PCCERT_CONTEXT *ppSigner,
  720. DWORD *pdwSignerIndex
  721. )
  722. {
  723. SetLastError(ERROR_PROC_NOT_FOUND);
  724. return FALSE;
  725. }
  726. static
  727. WINCRYPT32API
  728. BOOL
  729. WINAPI
  730. CryptProtectData(
  731. DATA_BLOB* pDataIn,
  732. LPCWSTR szDataDescr,
  733. DATA_BLOB* pOptionalEntropy,
  734. PVOID pvReserved,
  735. CRYPTPROTECT_PROMPTSTRUCT* pPromptStruct,
  736. DWORD dwFlags,
  737. DATA_BLOB* pDataOut)
  738. {
  739. SetLastError(ERROR_PROC_NOT_FOUND);
  740. return FALSE;
  741. }
  742. static
  743. WINCRYPT32API
  744. BOOL
  745. WINAPI
  746. CryptProtectMemory(
  747. LPVOID pDataIn,
  748. DWORD cbDataIn,
  749. DWORD dwFlags
  750. )
  751. {
  752. SetLastError(ERROR_PROC_NOT_FOUND);
  753. return FALSE;
  754. }
  755. static
  756. WINCRYPT32API
  757. BOOL
  758. WINAPI
  759. CryptSignAndEncodeCertificate(
  760. IN HCRYPTPROV hCryptProv,
  761. IN DWORD dwKeySpec,
  762. IN DWORD dwCertEncodingType,
  763. IN LPCSTR lpszStructType,
  764. IN const void *pvStructInfo,
  765. IN PCRYPT_ALGORITHM_IDENTIFIER pSignatureAlgorithm,
  766. IN OPTIONAL const void *pvHashAuxInfo,
  767. OUT BYTE *pbEncoded,
  768. IN OUT DWORD *pcbEncoded
  769. )
  770. {
  771. SetLastError(ERROR_PROC_NOT_FOUND);
  772. return FALSE;
  773. }
  774. static
  775. WINCRYPT32API
  776. BOOL
  777. WINAPI
  778. CryptSignMessage(
  779. IN PCRYPT_SIGN_MESSAGE_PARA pSignPara,
  780. IN BOOL fDetachedSignature,
  781. IN DWORD cToBeSigned,
  782. IN const BYTE *rgpbToBeSigned[],
  783. IN DWORD rgcbToBeSigned[],
  784. OUT BYTE *pbSignedBlob,
  785. IN OUT DWORD *pcbSignedBlob
  786. )
  787. {
  788. SetLastError(ERROR_PROC_NOT_FOUND);
  789. return FALSE;
  790. }
  791. static
  792. WINCRYPT32API
  793. BOOL
  794. WINAPI
  795. CryptUnprotectData(
  796. DATA_BLOB* pDataIn, // in encr blob
  797. LPWSTR* ppszDataDescr, // out
  798. DATA_BLOB* pOptionalEntropy,
  799. PVOID pvReserved,
  800. CRYPTPROTECT_PROMPTSTRUCT* pPromptStruct,
  801. DWORD dwFlags,
  802. DATA_BLOB* pDataOut)
  803. {
  804. SetLastError(ERROR_PROC_NOT_FOUND);
  805. return FALSE;
  806. }
  807. static
  808. WINCRYPT32API
  809. BOOL
  810. WINAPI
  811. CryptUnprotectMemory(
  812. LPVOID pDataIn,
  813. DWORD cbDataIn,
  814. DWORD dwFlags
  815. )
  816. {
  817. SetLastError(ERROR_PROC_NOT_FOUND);
  818. return FALSE;
  819. }
  820. static
  821. WINCRYPT32API
  822. BOOL
  823. WINAPI
  824. CryptVerifyCertificateSignature(
  825. IN HCRYPTPROV hCryptProv,
  826. IN DWORD dwCertEncodingType,
  827. IN const BYTE * pbEncoded,
  828. IN DWORD cbEncoded,
  829. IN PCERT_PUBLIC_KEY_INFO pPublicKey
  830. )
  831. {
  832. SetLastError(ERROR_PROC_NOT_FOUND);
  833. return FALSE;
  834. }
  835. static
  836. WINCRYPT32API
  837. BOOL
  838. WINAPI
  839. CryptVerifyMessageSignature(
  840. PCRYPT_VERIFY_MESSAGE_PARA pVerifyPara,
  841. DWORD dwSignerIndex,
  842. const BYTE *pbSignedBlob,
  843. DWORD cbSignedBlob,
  844. BYTE *pbDecoded,
  845. DWORD *pcbDecoded,
  846. PCCERT_CONTEXT *ppSignerCert
  847. )
  848. {
  849. SetLastError(ERROR_PROC_NOT_FOUND);
  850. return FALSE;
  851. }
  852. //
  853. // !! WARNING !! The entries below must be in alphabetical order
  854. // and are CASE SENSITIVE (i.e., lower case comes last!)
  855. //
  856. DEFINE_PROCNAME_ENTRIES(crypt32)
  857. {
  858. DLPENTRY(CertAddCertificateContextToStore)
  859. DLPENTRY(CertAddEncodedCertificateToStore)
  860. DLPENTRY(CertCloseStore)
  861. DLPENTRY(CertCompareCertificate)
  862. DLPENTRY(CertCompareCertificateName)
  863. DLPENTRY(CertControlStore)
  864. DLPENTRY(CertCreateCTLContext)
  865. DLPENTRY(CertCreateCertificateContext)
  866. DLPENTRY(CertCreateSelfSignCertificate)
  867. DLPENTRY(CertDeleteCertificateFromStore)
  868. DLPENTRY(CertDuplicateCTLContext)
  869. DLPENTRY(CertDuplicateCertificateContext)
  870. DLPENTRY(CertEnumCertificatesInStore)
  871. DLPENTRY(CertFindCTLInStore)
  872. DLPENTRY(CertFindCertificateInStore)
  873. DLPENTRY(CertFindExtension)
  874. DLPENTRY(CertFindSubjectInCTL)
  875. DLPENTRY(CertFreeCTLContext)
  876. DLPENTRY(CertFreeCertificateChain)
  877. DLPENTRY(CertFreeCertificateContext)
  878. DLPENTRY(CertGetCertificateChain)
  879. DLPENTRY(CertGetCertificateContextProperty)
  880. DLPENTRY(CertGetEnhancedKeyUsage)
  881. DLPENTRY(CertGetIssuerCertificateFromStore)
  882. DLPENTRY(CertGetNameStringW)
  883. DLPENTRY(CertGetPublicKeyLength)
  884. DLPENTRY(CertNameToStrW)
  885. DLPENTRY(CertOpenStore)
  886. DLPENTRY(CertOpenSystemStoreW)
  887. DLPENTRY(CertRDNValueToStrW)
  888. DLPENTRY(CertRegisterPhysicalStore)
  889. DLPENTRY(CertSetCertificateContextProperty)
  890. DLPENTRY(CertStrToNameW)
  891. DLPENTRY(CertVerifyCertificateChainPolicy)
  892. DLPENTRY(CertVerifySubjectCertificateContext)
  893. DLPENTRY(CertVerifyTimeValidity)
  894. DLPENTRY(CryptAcquireCertificatePrivateKey)
  895. DLPENTRY(CryptBinaryToStringW)
  896. DLPENTRY(CryptDecodeObject)
  897. DLPENTRY(CryptDecodeObjectEx)
  898. DLPENTRY(CryptDecryptMessage)
  899. DLPENTRY(CryptEncodeObject)
  900. DLPENTRY(CryptEncodeObjectEx)
  901. DLPENTRY(CryptEncryptMessage)
  902. DLPENTRY(CryptExportPublicKeyInfo)
  903. DLPENTRY(CryptFormatObject)
  904. DLPENTRY(CryptHashPublicKeyInfo)
  905. DLPENTRY(CryptImportPublicKeyInfo)
  906. DLPENTRY(CryptImportPublicKeyInfoEx)
  907. DLPENTRY(CryptMsgGetAndVerifySigner)
  908. DLPENTRY(CryptProtectData)
  909. DLPENTRY(CryptProtectMemory)
  910. DLPENTRY(CryptSignAndEncodeCertificate)
  911. DLPENTRY(CryptSignMessage)
  912. DLPENTRY(CryptUnprotectData)
  913. DLPENTRY(CryptUnprotectMemory)
  914. DLPENTRY(CryptVerifyCertificateSignature)
  915. DLPENTRY(CryptVerifyMessageSignature)
  916. };
  917. DEFINE_PROCNAME_MAP(crypt32)