ReactOS 0.4.16-dev-823-g9a093ec
|
#include "config.h"
#include "wine/port.h"
#include <assert.h>
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "winnls.h"
#include "winreg.h"
#include "winuser.h"
#include "wincrypt.h"
#include "wine/debug.h"
#include "wine/exception.h"
#include "crypt32_private.h"
Go to the source code of this file.
Classes | |
struct | _WINE_MEMSTORE |
Typedefs | |
typedef struct _WINE_MEMSTORE | WINE_MEMSTORE |
Variables | |
static const WINE_CONTEXT_INTERFACE | gCertInterface |
const WINE_CONTEXT_INTERFACE * | pCertInterface = &gCertInterface |
static const WINE_CONTEXT_INTERFACE | gCRLInterface |
const WINE_CONTEXT_INTERFACE * | pCRLInterface = &gCRLInterface |
static const WINE_CONTEXT_INTERFACE | gCTLInterface |
const WINE_CONTEXT_INTERFACE * | pCTLInterface = &gCTLInterface |
static const store_vtbl_t | MemStoreVtbl |
static const WCHAR | rootW [] = { 'R','o','o','t',0 } |
static void * | msgProvFuncs [] |
static const store_vtbl_t | EmptyStoreVtbl |
WINECRYPT_CERTSTORE | empty_store |
typedef struct _WINE_MEMSTORE WINE_MEMSTORE |
BOOL WINAPI CertAddCRLContextToStore | ( | HCERTSTORE | hCertStore, |
PCCRL_CONTEXT | pCrlContext, | ||
DWORD | dwAddDisposition, | ||
PCCRL_CONTEXT * | ppStoreContext | ||
) |
Definition at line 960 of file store.c.
Referenced by CertAddEncodedCRLToStore(), CRYPT_CreateAny(), CRYPT_CreateCRL(), import_crl(), and testAddCRL().
BOOL WINAPI CertCloseStore | ( | HCERTSTORE | hCertStore, |
DWORD | dwFlags | ||
) |
Definition at line 1127 of file store.c.
Referenced by cert_mgr_do_export(), CertAddEncodedCertificateToSystemStoreA(), CertAddEncodedCertificateToSystemStoreW(), CertRegisterSystemStore(), CertRemoveStoreFromCollection(), check_ssl_policy(), close_stores(), CRYPT_CheckRestrictedRoot(), CRYPT_CloseStores(), CRYPT_CreateAny(), CRYPT_CreateChainEngine(), CRYPT_FileControl(), CRYPT_FindIssuer(), CRYPT_FreeChainContext(), CRYPT_ImportSystemRootCertsToReg(), CRYPT_MsgOpenStore(), CRYPT_ProvCreateStore(), CRYPT_ProvOpenStore(), CRYPT_QueryContextObject(), CRYPT_QuerySerializedStoreFromBlob(), CRYPT_QuerySerializedStoreFromFile(), CRYPT_RegControl(), CRYPT_SerializedOpenStore(), CRYPT_SysOpenStoreW(), CRYPTDLG_IsCertAllowed(), CRYPTDLG_MakeEngine(), CryptMsgGetAndVerifySigner(), CryptVerifyDetachedMessageSignature(), CryptVerifyMessageSignature(), free_chain_engine(), getChain(), import_cert(), import_crl(), import_ctl(), import_file(), read_trusted_roots_from_known_locations(), save_cert_as_cms(), save_pfx(), select_store_dlg_proc(), show_import_ui(), SOFTPUB_CreateStoreFromMessage(), SoftpubAuthenticode(), SoftpubCleanup(), test_CERT_CHAIN_PARA_cbSize(), test_crypt_ui_wiz_import(), test_I_UpdateStore(), test_msg_get_and_verify_signer(), test_retrieveObjectByUrl(), test_utils(), test_verifyRevocation(), testAddCert(), testAddCertificateLink(), testAddCRL(), testAddCTLToStore(), testAddSerialized(), testCertOpenSystemStore(), testCertRegisterSystemStore(), testCloseStore(), testCollectionStore(), testCreateCertChainEngine(), testDupCert(), testEmptyStore(), testFileNameStore(), testFileStore(), testFindCert(), testFindCRL(), testGetCertChain(), testGetCRLFromStore(), testGetIssuerCert(), testGetSubjectCert(), testIsValidCRLForCert(), testLinkCert(), testMemStore(), testMessageStore(), testRegStore(), testRegStoreSavedCerts(), testSerializedStore(), testStoreProperty(), testStoresInCollection(), testSystemRegStore(), testSystemStore(), testVerifyRevocation(), and WINTRUST_CreateChainForSigner().
BOOL WINAPI CertControlStore | ( | HCERTSTORE | hCertStore, |
DWORD | dwFlags, | ||
DWORD | dwCtrlType, | ||
void const * | pvCtrlPara | ||
) |
Definition at line 1149 of file store.c.
Referenced by testAddCertificateLink(), testCollectionStore(), testFileStore(), and testRegStore().
BOOL WINAPI CertDeleteCertificateFromStore | ( | PCCERT_CONTEXT | pCertContext | ) |
Definition at line 943 of file store.c.
Referenced by cert_mgr_do_remove(), Collection_deleteCert(), find_and_delete_cert_in_store(), test_I_UpdateStore(), testAddCert(), testAddCertificateLink(), testAddSerialized(), testCertRegisterSystemStore(), testCollectionStore(), testEmptyStore(), testMemStore(), testRegStore(), and testRegStoreSavedCerts().
BOOL WINAPI CertDeleteCRLFromStore | ( | PCCRL_CONTEXT | pCrlContext | ) |
Definition at line 1080 of file store.c.
Referenced by Collection_deleteCRL().
HCERTSTORE WINAPI CertDuplicateStore | ( | HCERTSTORE | hCertStore | ) |
Definition at line 1116 of file store.c.
Referenced by check_and_store_certs(), CRYPT_CopyChainToElement(), CRYPT_CreateChainEngine(), CRYPT_QueryContextObject(), CRYPT_QuerySerializedContextObject(), CRYPT_QuerySerializedStoreFromBlob(), CRYPT_QuerySerializedStoreFromFile(), testCloseStore(), and WINTRUST_AddStore().
PCCERT_CONTEXT WINAPI CertEnumCertificatesInStore | ( | HCERTSTORE | hCertStore, |
PCCERT_CONTEXT | pPrev | ||
) |
Definition at line 928 of file store.c.
Referenced by _test_store_is_empty(), add_store_certs(), cert_compare_certs_in_store(), check_and_store_certs(), check_store_context_type(), countCertsInStore(), CRYPT_CheckRestrictedRoot(), CRYPT_SavePKCSToMem(), find_cert_any(), import_store(), show_store_certs(), test_crypt_ui_wiz_import(), test_remote_cert(), test_retrieveObjectByUrl(), testAddSerialized(), testCertRegisterSystemStore(), testCollectionStore(), testCreateCert(), testFileNameStore(), testFileStore(), testGetIssuerCert(), testMemStore(), testMessageStore(), testRegStore(), testSerializedStore(), and testStoresInCollection().
PCCRL_CONTEXT WINAPI CertEnumCRLsInStore | ( | HCERTSTORE | hCertStore, |
PCCRL_CONTEXT | pPrev | ||
) |
Definition at line 1101 of file store.c.
Referenced by CertFindCRLInStore(), check_store_context_type(), countCRLsInStore(), CRYPT_SavePKCSToMem(), import_store(), test_crypt_ui_wiz_import(), testFileNameStore(), testMessageStore(), and testSerializedStore().
BOOL WINAPI CertEnumPhysicalStore | ( | const void * | pvSystemStore, |
DWORD | dwFlags, | ||
void * | pvArg, | ||
PFN_CERT_ENUM_PHYSICAL_STORE | pfnEnum | ||
) |
BOOL WINAPI CertEnumSystemStore | ( | DWORD | dwFlags, |
void * | pvSystemStoreLocationPara, | ||
void * | pvArg, | ||
PFN_CERT_ENUM_SYSTEM_STORE | pfnEnum | ||
) |
Definition at line 1321 of file store.c.
Referenced by enumerate_stores(), and testCertEnumSystemStore().
BOOL WINAPI CertGetStoreProperty | ( | HCERTSTORE | hCertStore, |
DWORD | dwPropId, | ||
void * | pvData, | ||
DWORD * | pcbData | ||
) |
Definition at line 1172 of file store.c.
Referenced by CertGetCertificateContextProperty(), CertGetCRLContextProperty(), CertGetCTLContextProperty(), enumerate_stores(), and testStoreProperty().
HCERTSTORE WINAPI CertOpenStore | ( | LPCSTR | lpszStoreProvider, |
DWORD | dwMsgAndCertEncodingType, | ||
HCRYPTPROV_LEGACY | hCryptProv, | ||
DWORD | dwFlags, | ||
const void * | pvPara | ||
) |
Definition at line 815 of file store.c.
Referenced by cert_mgr_do_export(), CertOpenSystemStoreA(), CertOpenSystemStoreW(), CertRegisterSystemStore(), CertUnregisterSystemStore(), check_ssl_policy(), choose_store_for_cert(), create_root_store(), CRYPT_BuildCandidateChainFromCert(), CRYPT_CreateAny(), CRYPT_CreateChainEngine(), CRYPT_CreateContext(), CRYPT_FileControl(), CRYPT_FileNameOpenStoreW(), CRYPT_FileOpenStore(), CRYPT_FindIssuer(), CRYPT_MsgOpenStore(), CRYPT_ProvOpenStore(), CRYPT_QueryContextObject(), CRYPT_QueryMessageObject(), CRYPT_QuerySerializedStoreFromBlob(), CRYPT_QuerySerializedStoreFromFile(), CRYPT_RegControl(), CRYPT_RegOpenStore(), CRYPT_SerializedOpenStore(), CRYPT_SysOpenStoreW(), CRYPTDLG_IsCertAllowed(), CRYPTDLG_MakeEngine(), CryptGetMessageCertificates(), CryptMsgGetAndVerifySigner(), CryptVerifyDetachedMessageSignature(), CryptVerifyMessageSignature(), getChain(), import_crl(), import_ctl(), read_trusted_roots_from_known_locations(), save_cert_as_cms(), save_pfx(), show_cert_stores(), SOFTPUB_CreateStoreFromMessage(), SoftpubAuthenticode(), test_CERT_CHAIN_PARA_cbSize(), test_crypt_ui_wiz_import(), test_I_UpdateStore(), test_msg_get_and_verify_signer(), test_utils(), test_verifyRevocation(), testAddCert(), testAddCertificateLink(), testAddCRL(), testAddCTLToStore(), testAddSerialized(), testCertOpenSystemStore(), testCertRegisterSystemStore(), testCloseStore(), testCollectionStore(), testCreateCertChainEngine(), testDupCert(), testEmptyStore(), testFileNameStore(), testFileStore(), testFindCert(), testFindCRL(), testGetCertChain(), testGetCRLFromStore(), testGetIssuerCert(), testGetSubjectCert(), testIsValidCRLForCert(), testLinkCert(), testMemStore(), testMessageStore(), testRegStore(), testRegStoreSavedCerts(), testSerializedStore(), testStoreProperty(), testStoresInCollection(), testSystemRegStore(), testSystemStore(), testVerifyRevocation(), and WINTRUST_CreateChainForSigner().
HCERTSTORE WINAPI CertOpenSystemStoreA | ( | HCRYPTPROV_LEGACY | hProv, |
LPCSTR | szSubSystemProtocol | ||
) |
Definition at line 904 of file store.c.
Referenced by CertAddEncodedCertificateToSystemStoreA(), testAddCertificateLink(), and testCollectionStore().
HCERTSTORE WINAPI CertOpenSystemStoreW | ( | HCRYPTPROV_LEGACY | hProv, |
LPCWSTR | szSubSystemProtocol | ||
) |
Definition at line 916 of file store.c.
Referenced by CertAddEncodedCertificateToSystemStoreW(), CRYPT_CheckRestrictedRoot(), selected_item_to_store(), testCertOpenSystemStore(), and testStoreProperty().
BOOL WINAPI CertRegisterPhysicalStore | ( | const void * | pvSystemStore, |
DWORD | dwFlags, | ||
LPCWSTR | pwszStoreName, | ||
PCERT_PHYSICAL_STORE_INFO | pStoreInfo, | ||
void * | pvReserved | ||
) |
BOOL WINAPI CertRegisterSystemStore | ( | const void * | pvSystemStore, |
DWORD | dwFlags, | ||
PCERT_SYSTEM_STORE_INFO | pStoreInfo, | ||
void * | pvReserved | ||
) |
Definition at line 1448 of file store.c.
Referenced by testCertRegisterSystemStore().
BOOL WINAPI CertSetStoreProperty | ( | HCERTSTORE | hCertStore, |
DWORD | dwPropId, | ||
DWORD | dwFlags, | ||
const void * | pvData | ||
) |
Definition at line 1236 of file store.c.
Referenced by testStoreProperty().
Definition at line 1471 of file store.c.
Referenced by testCertRegisterSystemStore().
void CRYPT_FreeStore | ( | WINECRYPT_CERTSTORE * | store | ) |
Definition at line 101 of file store.c.
Referenced by Collection_release(), MemStore_release(), and ProvStore_release().
void CRYPT_InitStore | ( | WINECRYPT_CERTSTORE * | store, |
DWORD | dwFlags, | ||
CertStoreType | type, | ||
const store_vtbl_t * | vtbl | ||
) |
Definition at line 91 of file store.c.
Referenced by CRYPT_CollectionOpenStore(), CRYPT_MemOpenStore(), CRYPT_ProvCreateStore(), and init_empty_store().
|
static |
Definition at line 375 of file store.c.
Referenced by CertOpenStore().
|
static |
|
static |
Definition at line 657 of file store.c.
Referenced by CertOpenStore(), and CRYPT_PKCSOpenStore().
|
static |
Definition at line 1268 of file store.c.
Referenced by CertEnumSystemStore().
|
static |
|
static |
Definition at line 735 of file store.c.
Referenced by CertOpenStore().
|
static |
Definition at line 776 of file store.c.
Referenced by CertOpenStore().
|
static |
Definition at line 616 of file store.c.
Referenced by CertOpenStore().
|
static |
Definition at line 544 of file store.c.
Referenced by CertOpenStore(), and CRYPT_SysOpenStoreA().
|
static |
Definition at line 515 of file store.c.
Referenced by CertOpenStore().
|
static |
Definition at line 409 of file store.c.
Referenced by CertOpenStore(), and CRYPT_SysRegOpenStoreA().
|
static |
Definition at line 1509 of file store.c.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 218 of file store.c.
Referenced by MemStore_release().
BOOL WINAPI I_CertUpdateStore | ( | HCERTSTORE | store1, |
HCERTSTORE | store2, | ||
DWORD | unk0, | ||
DWORD | unk1 | ||
) |
Definition at line 109 of file store.c.
Referenced by CRYPT_FileControl(), and CRYPT_RegControl().
|
static |
Definition at line 237 of file store.c.
|
static |
Definition at line 146 of file store.c.
Referenced by MemStore_addCert(), MemStore_addCRL(), and MemStore_addCTL().
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 255 of file store.c.
|
static |
Definition at line 201 of file store.c.
Referenced by MemStore_deleteCert(), MemStore_deleteCRL(), and MemStore_deleteCTL().
|
static |
|
static |
|
static |
Definition at line 246 of file store.c.
|
static |
Definition at line 177 of file store.c.
Referenced by MemStore_enumCert(), MemStore_enumCRL(), and MemStore_enumCTL().
|
static |
|
static |
|
static |
|
static |
WINE_DEFAULT_DEBUG_CHANNEL | ( | crypt | ) |
WINECRYPT_CERTSTORE empty_store |
Definition at line 1564 of file store.c.
Referenced by CertCreateCertificateContext(), CertCreateCRLContext(), CertCreateCTLContext(), and init_empty_store().
|
static |
Definition at line 1544 of file store.c.
Referenced by init_empty_store().
|
static |
|
static |
|
static |
|
static |
Definition at line 355 of file store.c.
Referenced by CRYPT_MemOpenStore().
|
static |
Definition at line 653 of file store.c.
Referenced by CRYPT_MsgOpenStore().
const WINE_CONTEXT_INTERFACE* pCertInterface = &gCertInterface |
Definition at line 54 of file store.c.
Referenced by CertAddSerializedElementToStore(), CertSerializeCertificateStoreElement(), CRYPT_ImportSystemRootCertsToReg(), CRYPT_QueryContextBlob(), CRYPT_QuerySerializedContextObject(), CRYPT_ReadSerializedElement(), CRYPT_ReadSerializedStore(), CRYPT_RegDeleteCert(), CRYPT_RegReadSerializedFromReg(), CRYPT_RegWriteToReg(), CRYPT_SerializeCertNoHash(), CRYPT_WriteSerializedStoreToStream(), and I_CertUpdateStore().
const WINE_CONTEXT_INTERFACE* pCRLInterface = &gCRLInterface |
Definition at line 67 of file store.c.
Referenced by CertAddSerializedElementToStore(), CertSerializeCRLStoreElement(), CRYPT_QueryContextBlob(), CRYPT_QuerySerializedContextObject(), CRYPT_ReadSerializedElement(), CRYPT_ReadSerializedStore(), CRYPT_RegDeleteCRL(), CRYPT_RegReadSerializedFromReg(), CRYPT_RegWriteToReg(), CRYPT_SerializeCRLNoHash(), CRYPT_WriteSerializedStoreToStream(), and I_CertUpdateStore().
const WINE_CONTEXT_INTERFACE* pCTLInterface = &gCTLInterface |
Definition at line 80 of file store.c.
Referenced by CertAddSerializedElementToStore(), CertSerializeCTLStoreElement(), CRYPT_QueryContextBlob(), CRYPT_QuerySerializedContextObject(), CRYPT_ReadSerializedElement(), CRYPT_ReadSerializedStore(), CRYPT_RegDeleteCTL(), CRYPT_RegReadSerializedFromReg(), CRYPT_RegWriteToReg(), CRYPT_SerializeCTLNoHash(), CRYPT_WriteSerializedStoreToStream(), and I_CertUpdateStore().
Definition at line 407 of file store.c.
Referenced by CertEnumSystemStore(), and CRYPT_SysRegOpenStoreW().