|
ReactOS 0.4.17-dev-470-gf9e3448
|
#include <assert.h>#include <stdarg.h>#include "ntstatus.h"#include "windef.h"#include "winbase.h"#include "winternl.h"#include "wincrypt.h"#include "snmp.h"#include "bcrypt.h"#include "winnls.h"#include "rpc.h"#include "wine/debug.h"#include "crypt32_private.h"
Go to the source code of this file.
Classes | |
| struct | _OLD_CERT_REVOCATION_STATUS |
| struct | BitField |
Macros | |
| #define | WIN32_NO_STATUS |
| #define | CRYPT_OID_INFO_HAS_EXTRA_FIELDS |
| #define | BITS_PER_DWORD (sizeof(DWORD) * 8) |
Typedefs | |
| typedef BOOL(* | CertCompareFunc) (PCCERT_CONTEXT pCertContext, DWORD dwType, DWORD dwFlags, const void *pvPara) |
| typedef PCCERT_CONTEXT(* | CertFindFunc) (HCERTSTORE store, DWORD dwType, DWORD dwFlags, const void *pvPara, PCCERT_CONTEXT prev) |
| typedef struct _OLD_CERT_REVOCATION_STATUS | OLD_CERT_REVOCATION_STATUS |
| typedef BOOL(WINAPI * | CertVerifyRevocationFunc) (DWORD, DWORD, DWORD, void **, DWORD, PCERT_REVOCATION_PARA, PCERT_REVOCATION_STATUS) |
| typedef RPC_STATUS(RPC_ENTRY * | UuidCreateFunc) (UUID *) |
| typedef RPC_STATUS(RPC_ENTRY * | UuidToStringFunc) (UUID *, unsigned char **) |
| typedef RPC_STATUS(RPC_ENTRY * | RpcStringFreeFunc) (unsigned char **) |
Variables | |
| static const context_vtbl_t | cert_vtbl |
| typedef PCCERT_CONTEXT(* CertFindFunc) (HCERTSTORE store, DWORD dwType, DWORD dwFlags, const void *pvPara, PCCERT_CONTEXT prev) |
| typedef BOOL(WINAPI * CertVerifyRevocationFunc) (DWORD, DWORD, DWORD, void **, DWORD, PCERT_REVOCATION_PARA, PCERT_REVOCATION_STATUS) |
| typedef RPC_STATUS(RPC_ENTRY * RpcStringFreeFunc) (unsigned char **) |
| typedef RPC_STATUS(RPC_ENTRY * UuidCreateFunc) (UUID *) |
| typedef RPC_STATUS(RPC_ENTRY * UuidToStringFunc) (UUID *, unsigned char **) |
|
static |
Definition at line 169 of file cert.c.
Referenced by CertAddCertificateContextToStore(), and CertAddCertificateLinkToStore().
|
static |
Definition at line 126 of file cert.c.
|
inlinestatic |
Definition at line 1621 of file cert.c.
Referenced by CertFindCertificateInStore(), find_cert_by_issuer(), find_cert_by_name_str_a(), and find_cert_by_name_str_w().
|
static |
Definition at line 1202 of file cert.c.
Referenced by CryptFindCertificateKeyProvInfo().
| BOOL WINAPI CertAddCertificateContextToStore | ( | HCERTSTORE | hCertStore, |
| PCCERT_CONTEXT | pCertContext, | ||
| DWORD | dwAddDisposition, | ||
| PCCERT_CONTEXT * | ppStoreContext | ||
| ) |
Definition at line 284 of file cert.c.
Referenced by cert_mgr_do_export(), CertAddEncodedCertificateToStore(), check_and_store_certs(), CRYPT_CreateAny(), CRYPT_CreateCert(), CRYPT_FindIssuer(), import_cert(), PFXImportCertStore(), read_trusted_roots_from_known_locations(), save_cert_as_cms(), save_pfx(), testAddCert(), testCertRegisterSystemStore(), testDupCert(), testEmptyStore(), testGetIssuerCert(), testKeyProvInfo(), testRegStoreSavedCerts(), and testStoresInCollection().
| BOOL WINAPI CertAddCertificateLinkToStore | ( | HCERTSTORE | hCertStore, |
| PCCERT_CONTEXT | pCertContext, | ||
| DWORD | dwAddDisposition, | ||
| PCCERT_CONTEXT * | ppCertContext | ||
| ) |
Definition at line 294 of file cert.c.
Referenced by testAddCertificateLink(), and testLinkCert().
| BOOL WINAPI CertAddEncodedCertificateToStore | ( | HCERTSTORE | hCertStore, |
| DWORD | dwCertEncodingType, | ||
| const BYTE * | pbCertEncoded, | ||
| DWORD | cbCertEncoded, | ||
| DWORD | dwAddDisposition, | ||
| PCCERT_CONTEXT * | ppCertContext | ||
| ) |
Definition at line 56 of file cert.c.
Referenced by add_ms_root_certs(), CertAddEncodedCertificateToSystemStoreA(), CertAddEncodedCertificateToSystemStoreW(), check_ssl_policy(), CRYPT_MsgOpenStore(), getChain(), read_trusted_roots_from_known_locations(), test_CERT_CHAIN_PARA_cbSize(), test_crypt_ui_wiz_import(), test_I_UpdateStore(), test_msg_get_and_verify_signer(), testAddCert(), testAddCertificateLink(), testCloseStore(), testCollectionStore(), testCreateCertChainEngine(), testDupCert(), testFileNameStore(), testFileStore(), testFindCert(), testGetCertChain(), testGetIssuerCert(), testGetSubjectCert(), testMemStore(), testMessageStore(), and testRegStore().
| BOOL WINAPI CertAddEncodedCertificateToSystemStoreA | ( | LPCSTR | pszCertStoreName, |
| const BYTE * | pbCertEncoded, | ||
| DWORD | cbCertEncoded | ||
| ) |
Definition at line 78 of file cert.c.
| BOOL WINAPI CertAddEncodedCertificateToSystemStoreW | ( | LPCWSTR | pszCertStoreName, |
| const BYTE * | pbCertEncoded, | ||
| DWORD | cbCertEncoded | ||
| ) |
Definition at line 97 of file cert.c.
| BOOL WINAPI CertAddEnhancedKeyUsageIdentifier | ( | PCCERT_CONTEXT | pCertContext, |
| LPCSTR | pszUsageIdentifier | ||
| ) |
Definition at line 3175 of file cert.c.
Referenced by testKeyUsage().
| BOOL WINAPI CertCompareCertificate | ( | DWORD | dwCertEncodingType, |
| PCERT_INFO | pCertId1, | ||
| PCERT_INFO | pCertId2 | ||
| ) |
Definition at line 1236 of file cert.c.
Referenced by compare_existing_cert(), CRYPT_CheckSimpleChainForCycles(), and testCompareCert().
| BOOL WINAPI CertCompareCertificateName | ( | DWORD | dwCertEncodingType, |
| PCERT_NAME_BLOB | pCertName1, | ||
| PCERT_NAME_BLOB | pCertName2 | ||
| ) |
Definition at line 1250 of file cert.c.
Referenced by CDecodeSignedMsg_VerifySignature(), CertCompareCertificate(), compare_cert_by_cert_id(), compare_cert_by_subject_cert(), compare_crl_existing(), compare_crl_issued_by(), compare_crl_issued_for(), CRYPT_IsCertificateSelfSigned(), testCompareCertName(), testFindCert(), and TrustIsCertificateSelfSigned().
| BOOL WINAPI CertCompareIntegerBlob | ( | PCRYPT_INTEGER_BLOB | pInt1, |
| PCRYPT_INTEGER_BLOB | pInt2 | ||
| ) |
Definition at line 1291 of file cert.c.
Referenced by CDecodeSignedMsg_VerifySignature(), CertCompareCertificate(), compare_cert_by_cert_id(), compare_cert_by_subject_cert(), compare_crl_issued_by(), CRYPT_FindCertificateInCRL(), CRYPT_IsCertificateSelfSigned(), testCompareIntegerBlob(), testFindCert(), and TrustIsCertificateSelfSigned().
| BOOL WINAPI CertComparePublicKeyInfo | ( | DWORD | dwCertEncodingType, |
| PCERT_PUBLIC_KEY_INFO | pPublicKey1, | ||
| PCERT_PUBLIC_KEY_INFO | pPublicKey2 | ||
| ) |
Definition at line 1314 of file cert.c.
Referenced by compare_cert_by_public_key(), testComparePublicKeyInfo(), verify_authenticode_policy(), and verify_ms_root_policy().
|
static |
Definition at line 408 of file cert.c.
Referenced by CertContext_GetProperty(), and CertGetCertificateContextProperty().
|
static |
Definition at line 393 of file cert.c.
Referenced by CertContext_GetProperty().
|
static |
Definition at line 514 of file cert.c.
Referenced by CertContext_SetProperty(), and CertGetCertificateContextProperty().
|
static |
Definition at line 694 of file cert.c.
Referenced by CertContext_SetProperty().
|
static |
Definition at line 3501 of file cert.c.
Referenced by CertCreateSelfSignCertificate().
|
static |
Definition at line 665 of file cert.c.
Referenced by CertContext_SetProperty().
|
static |
Definition at line 707 of file cert.c.
Referenced by CertContext_GetHashProp(), CertContext_GetProperty(), CertContext_SetProperty(), and CertSetCertificateContextProperty().
| PCCERT_CONTEXT WINAPI CertCreateCertificateContext | ( | DWORD | dwCertEncodingType, |
| const BYTE * | pbCertEncoded, | ||
| DWORD | cbCertEncoded | ||
| ) |
Definition at line 314 of file cert.c.
Referenced by CertAddEncodedCertificateToStore(), CertCreateContext(), CertCreateSelfSignCertificate(), CRYPT_CreateSignedCert(), msg_get_signer_callback(), rdssl_cert_read(), ShowX509EncodedCertificate(), test_CertGetNameString(), test_CertNameToStrA(), test_CertNameToStrW(), test_crypt_ui_wiz_import(), test_encrypt_message(), test_enveloped_msg_open(), test_getObjectUrl(), test_sign_message(), test_utils(), test_verifyRevocation(), test_VerifySignature(), testAcquireCertPrivateKey(), testAcquireSecurityContext(), testAddCert(), testAddCertificateLink(), testCertProperties(), testCertRegisterSystemStore(), testCertSigs(), testCertTrust(), testCreateCert(), testDupCert(), testEmptyStore(), testFindCertInCRL(), testFindCRL(), testGetCertChain(), testGetCRLFromStore(), testGetValidUsages(), testImportPublicKey(), testIsValidCRLForCert(), testKeyProvInfo(), testKeyUsage(), testLinkCert(), testObjTrust(), testRegStoreSavedCerts(), testStoresInCollection(), testVerifyCertChainPolicy(), testVerifyCRLRevocation(), testVerifyRevocation(), testVerifySubjectCert(), and verify_and_copy_certificate().
| const void *WINAPI CertCreateContext | ( | DWORD | dwContextType, |
| DWORD | dwEncodingType, | ||
| const BYTE * | pbEncoded, | ||
| DWORD | cbEncoded, | ||
| DWORD | dwFlags, | ||
| PCERT_CREATE_CONTEXT_PARA | pCreatePara | ||
| ) |
Definition at line 3876 of file cert.c.
Referenced by PFXImportCertStore().
| PCCERT_CONTEXT WINAPI CertCreateSelfSignCertificate | ( | HCRYPTPROV_OR_NCRYPT_KEY_HANDLE | hProv, |
| PCERT_NAME_BLOB | pSubjectIssuerBlob, | ||
| DWORD | dwFlags, | ||
| PCRYPT_KEY_PROV_INFO | pKeyProvInfo, | ||
| PCRYPT_ALGORITHM_IDENTIFIER | pSignatureAlgorithm, | ||
| PSYSTEMTIME | pStartTime, | ||
| PSYSTEMTIME | pEndTime, | ||
| PCERT_EXTENSIONS | pExtensions | ||
| ) |
Definition at line 3749 of file cert.c.
Referenced by testCreateSelfSignCert(), and testGetIssuerCert().
| PCCERT_CONTEXT WINAPI CertDuplicateCertificateContext | ( | PCCERT_CONTEXT | pCertContext | ) |
Definition at line 358 of file cert.c.
Referenced by add_cert_to_list(), add_cert_to_store(), add_cert_to_view(), CCert::CCert(), CRYPT_AddCertToSimpleChain(), CRYPT_BuildAlternateContextFromChain(), CRYPT_CopySimpleChainToElement(), CryptMsgGetAndVerifySigner(), MsiGetFileSignatureInformationW(), request_query_option(), request_set_option(), select_cert_dlg_proc(), testAddCert(), testDupCert(), testMemStore(), and WINTRUST_AddCert().
| DWORD WINAPI CertEnumCertificateContextProperties | ( | PCCERT_CONTEXT | pCertContext, |
| DWORD | dwPropId | ||
| ) |
Definition at line 378 of file cert.c.
Referenced by testCertProperties().
| PCRYPT_ATTRIBUTE WINAPI CertFindAttribute | ( | LPCSTR | pszObjId, |
| DWORD | cAttr, | ||
| CRYPT_ATTRIBUTE | rgAttr[] | ||
| ) |
Definition at line 2077 of file cert.c.
Referenced by test_findAttribute().
| PCCERT_CONTEXT WINAPI CertFindCertificateInStore | ( | HCERTSTORE | hCertStore, |
| DWORD | dwCertEncodingType, | ||
| DWORD | dwFlags, | ||
| DWORD | dwType, | ||
| const void * | pvPara, | ||
| PCCERT_CONTEXT | pPrevCertContext | ||
| ) |
Definition at line 1830 of file cert.c.
Referenced by add_cert_to_store(), add_ms_root_certs(), CertGetIssuerCertificateFromStore(), CertGetSubjectCertificateFromStore(), CRYPT_CheckBasicConstraintsForCA(), CRYPT_DefaultGetSignerCertificate(), CRYPT_FindCertInStore(), CRYPT_FindIssuer(), CryptAcquireCertificatePrivateKey(), CRYPTDLG_IsCertAllowed(), CryptMsgGetAndVerifySigner(), find_and_delete_cert_in_store(), read_trusted_roots_from_known_locations(), SoftpubAuthenticode(), test_client_cert_authentication(), test_PFXImportCertStore(), testFindCert(), testKeyProvInfo(), and testRegStoreSavedCerts().
| PCERT_EXTENSION WINAPI CertFindExtension | ( | LPCSTR | pszObjId, |
| DWORD | cExtensions, | ||
| CERT_EXTENSION | rgExtensions[] | ||
| ) |
Definition at line 2099 of file cert.c.
Referenced by cert_get_alt_name_info(), CertContext_GetProperty(), CertGetEnhancedKeyUsage(), CertGetIntendedKeyUsage(), CertIsValidCRLForCertificate(), compare_crl_issued_by(), CRYPT_CheckUsages(), CRYPT_DecodeBasicConstraints(), CRYPT_GetIssuer(), CRYPT_GetNameConstraints(), CRYPT_GetPolicies(), CRYPT_GetUrlFromCertificateCRLDistPoint(), CRYPT_GetUrlFromCertificateIssuer(), CRYPT_IsCertificateSelfSigned(), CRYPT_KeyUsageValid(), display_app_usages(), find_cert_by_issuer(), get_subject_alt_name_ext(), is_ca_cert(), set_issuer_statement(), test_findExtension(), TrustIsCertificateSelfSigned(), and verify_cert_revocation().
| PCERT_RDN_ATTR WINAPI CertFindRDNAttr | ( | LPCSTR | pszObjId, |
| PCERT_NAME_INFO | pName | ||
| ) |
Definition at line 2122 of file cert.c.
Referenced by cert_get_name_from_rdn_attr(), CertGetNameStringW(), get_cert_common_name(), match_dns_to_subject_dn(), and test_findRDNAttr().
| BOOL WINAPI CertFreeCertificateContext | ( | PCCERT_CONTEXT | pCertContext | ) |
Definition at line 369 of file cert.c.
Referenced by add_ms_root_certs(), Cert_clone(), CertAddEncodedCertificateToStore(), CertGetIssuerCertificateFromStore(), check_store_context_type(), CRYPT_BuildAlternateContextFromChain(), CRYPT_BuildSimpleChain(), CRYPT_CheckBasicConstraintsForCA(), CRYPT_CheckRestrictedRoot(), CRYPT_CheckTrustedStatus(), CRYPT_CreateAny(), CRYPT_FindIssuer(), CRYPT_FreeChainElement(), CryptAcquireCertificatePrivateKey(), CRYPTDLG_IsCertAllowed(), CryptExtOpenCERW(), CryptMsgGetAndVerifySigner(), CryptVerifyDetachedMessageSignature(), CryptVerifyMessageSignature(), free_certs(), get_security_cert_struct(), getChain(), netcon_secure_connect_setup(), netconn_secure_connect(), open_connection(), PFXImportCertStore(), rdssl_cert_free(), read_trusted_roots_from_known_locations(), request_destroy(), request_set_option(), save_pfx(), ShowX509EncodedCertificate(), SoftpubAuthenticode(), SoftpubCleanup(), test_CERT_CHAIN_PARA_cbSize(), test_CertGetNameString(), test_CertNameToStrA(), test_CertNameToStrW(), test_client_cert_authentication(), test_communication(), test_crypt_ui_wiz_import(), test_encrypt_message(), test_enveloped_msg_open(), test_getObjectUrl(), test_msg_get_and_verify_signer(), test_PFXImportCertStore(), test_retrieveObjectByUrl(), test_secure_connection(), test_sign_message(), test_utils(), test_verify_ecc_signature(), test_verifyRevocation(), test_VerifySignature(), testAcquireCertPrivateKey(), testAcquireSecurityContext(), testAddCert(), testAddCertificateLink(), testAddSerialized(), testCertProperties(), testCertRegisterSystemStore(), testCertSigs(), testCertTrust(), testCloseStore(), testCollectionStore(), testCreateCert(), testCreateSelfSignCert(), testDupCert(), testEmptyStore(), testFileStore(), testFindCert(), testFindCertInCRL(), testFindCRL(), testGetCertChain(), testGetCRLFromStore(), testGetIssuerCert(), testGetSubjectCert(), testGetValidUsages(), testImportPublicKey(), testIsValidCRLForCert(), testKeyProvInfo(), testKeyUsage(), testLinkCert(), testMemStore(), testObjTrust(), testRegStoreSavedCerts(), testStoresInCollection(), testVerifyCertChainPolicy(), testVerifyCRLRevocation(), testVerifyRevocation(), testVerifySubjectCert(), verify_and_copy_certificate(), WINTRUST_VerifySigner(), and CCert::~CCert().
| BOOL WINAPI CertGetCertificateContextProperty | ( | PCCERT_CONTEXT | pCertContext, |
| DWORD | dwPropId, | ||
| void * | pvData, | ||
| DWORD * | pcbData | ||
| ) |
Definition at line 615 of file cert.c.
Referenced by add_cert_to_list(), add_cert_to_store(), add_cert_to_view(), add_properties(), cert_prov_info_matches_cert(), CertGetEnhancedKeyUsage(), CertGetNameStringW(), checkHash(), compare_cert_by_cert_id(), compare_cert_by_md5_hash(), compare_cert_by_sha1_hash(), compare_cert_by_signature_hash(), compare_crl_issued_by(), CRYPT_AcquirePrivateKeyFromProvInfo(), CRYPT_CheckBasicConstraintsForCA(), CRYPT_FindCertInStore(), CRYPT_IsCertificateSelfSigned(), CryptAcquireCertificatePrivateKey(), CRYPTDLG_IsCertAllowed(), export_get_private_key_info(), export_info_has_private_key(), get_cert_property_as_string(), CCert::Init(), read_trusted_roots_from_known_locations(), SoftpubAuthenticode(), test_PFXImportCertStore(), testAcquireCertPrivateKey(), testAddCertificateLink(), testAddSerialized(), testCertProperties(), testCreateCert(), testCreateSelfSignCert(), testKeyProvInfo(), and TrustIsCertificateSelfSigned().
| BOOL WINAPI CertGetEnhancedKeyUsage | ( | PCCERT_CONTEXT | pCertContext, |
| DWORD | dwFlags, | ||
| PCERT_ENHKEY_USAGE | pUsage, | ||
| DWORD * | pcbUsage | ||
| ) |
Definition at line 3044 of file cert.c.
Referenced by CertAddEnhancedKeyUsageIdentifier(), CertGetValidUsages(), CertRemoveEnhancedKeyUsageIdentifier(), display_cert_usages(), get_cert_usages(), show_cert_usages(), and testKeyUsage().
| BOOL WINAPI CertGetIntendedKeyUsage | ( | DWORD | dwCertEncodingType, |
| PCERT_INFO | pCertInfo, | ||
| BYTE * | pbKeyUsage, | ||
| DWORD | cbKeyUsage | ||
| ) |
Definition at line 3007 of file cert.c.
Referenced by testIntendedKeyUsage().
| PCCERT_CONTEXT WINAPI CertGetIssuerCertificateFromStore | ( | HCERTSTORE | hCertStore, |
| PCCERT_CONTEXT | pSubjectContext, | ||
| PCCERT_CONTEXT | pPrevIssuerContext, | ||
| DWORD * | pdwFlags | ||
| ) |
Definition at line 1958 of file cert.c.
Referenced by testGetIssuerCert().
| DWORD WINAPI CertGetPublicKeyLength | ( | DWORD | dwCertEncodingType, |
| PCERT_PUBLIC_KEY_INFO | pPublicKey | ||
| ) |
Definition at line 1375 of file cert.c.
Referenced by field_format_public_key(), and testGetPublicKeyLength().
| PCCERT_CONTEXT WINAPI CertGetSubjectCertificateFromStore | ( | HCERTSTORE | hCertStore, |
| DWORD | dwCertEncodingType, | ||
| PCERT_INFO | pCertId | ||
| ) |
Definition at line 1902 of file cert.c.
Referenced by test_verify_ecc_signature(), testGetSubjectCert(), and WINTRUST_VerifySigner().
| BOOL WINAPI CertGetValidUsages | ( | DWORD | cCerts, |
| PCCERT_CONTEXT * | rghCerts, | ||
| int * | cNumOIDs, | ||
| LPSTR * | rghOIDs, | ||
| DWORD * | pcbOIDs | ||
| ) |
Definition at line 3356 of file cert.c.
Referenced by show_store_certs(), and testGetValidUsages().
| BOOL WINAPI CertIsRDNAttrsInCertificateName | ( | DWORD | dwCertEncodingType, |
| DWORD | dwFlags, | ||
| PCERT_NAME_BLOB | pCertName, | ||
| PCERT_RDN | pRDN | ||
| ) |
Definition at line 2202 of file cert.c.
Referenced by directory_name_matches(), and testIsRDNAttrsInCertificateName().
| BOOL WINAPI CertRemoveEnhancedKeyUsageIdentifier | ( | PCCERT_CONTEXT | pCertContext, |
| LPCSTR | pszUsageIdentifier | ||
| ) |
Definition at line 3260 of file cert.c.
Referenced by testKeyUsage().
| BOOL WINAPI CertSetCertificateContextProperty | ( | PCCERT_CONTEXT | pCertContext, |
| DWORD | dwPropId, | ||
| DWORD | dwFlags, | ||
| const void * | pvData | ||
| ) |
Definition at line 838 of file cert.c.
Referenced by CertContext_SetKeyProvInfo(), CertSetEnhancedKeyUsage(), CryptAcquireCertificatePrivateKey(), find_matching_provider(), read_trusted_roots_from_known_locations(), save_pfx(), set_cert_string_property(), set_key_context(), set_key_prov_info(), test_sign_message(), testAcquireCertPrivateKey(), testAcquireSecurityContext(), testAddCert(), testAddCertificateLink(), testCertProperties(), and testKeyProvInfo().
| BOOL WINAPI CertSetEnhancedKeyUsage | ( | PCCERT_CONTEXT | pCertContext, |
| PCERT_ENHKEY_USAGE | pUsage | ||
| ) |
Definition at line 3149 of file cert.c.
Referenced by apply_general_changes(), CertAddEnhancedKeyUsageIdentifier(), CertRemoveEnhancedKeyUsageIdentifier(), and testKeyUsage().
| BOOL WINAPI CertVerifyCTLUsage | ( | DWORD | dwEncodingType, |
| DWORD | dwSubjectType, | ||
| void * | pvSubject, | ||
| PCTL_USAGE | pSubjectUsage, | ||
| DWORD | dwFlags, | ||
| PCTL_VERIFY_USAGE_PARA | pVerifyUsagePara, | ||
| PCTL_VERIFY_USAGE_STATUS | pVerifyUsageStatus | ||
| ) |
| BOOL WINAPI CertVerifyRevocation | ( | DWORD | dwEncodingType, |
| DWORD | dwRevType, | ||
| DWORD | cContext, | ||
| PVOID | rgpvContext[], | ||
| DWORD | dwFlags, | ||
| PCERT_REVOCATION_PARA | pRevPara, | ||
| PCERT_REVOCATION_STATUS | pRevStatus | ||
| ) |
Definition at line 2005 of file cert.c.
Referenced by CRYPT_VerifyChainRevocation(), and testVerifyRevocation().
| BOOL WINAPI CertVerifySubjectCertificateContext | ( | PCCERT_CONTEXT | pSubject, |
| PCCERT_CONTEXT | pIssuer, | ||
| DWORD * | pdwFlags | ||
| ) |
Definition at line 1916 of file cert.c.
Referenced by CertGetIssuerCertificateFromStore(), rdssl_certs_ok(), and testVerifySubjectCert().
| LONG WINAPI CertVerifyTimeValidity | ( | LPFILETIME | pTimeToVerify, |
| PCERT_INFO | pCertInfo | ||
| ) |
Definition at line 2229 of file cert.c.
Referenced by CertTrustFinalPolicy(), CertVerifySubjectCertificateContext(), CertVerifyValidityNesting(), CRYPT_CheckSimpleChain(), and test_verifyTimeValidity().
| BOOL WINAPI CertVerifyValidityNesting | ( | PCERT_INFO | pSubjectInfo, |
| PCERT_INFO | pIssuerInfo | ||
| ) |
|
static |
Definition at line 2598 of file cert.c.
Referenced by CNG_VerifySignature().
|
static |
Definition at line 2637 of file cert.c.
Referenced by CNG_ImportPubKey().
| BOOL CNG_ImportPubKey | ( | CERT_PUBLIC_KEY_INFO * | pubKeyInfo, |
| BCRYPT_KEY_HANDLE * | key | ||
| ) |
Definition at line 2770 of file cert.c.
Referenced by CNG_VerifySignature(), and CryptImportPublicKeyInfoEx2().
|
static |
Definition at line 2701 of file cert.c.
Referenced by CNG_ImportPubKey().
| BOOL cng_prepare_signature | ( | const char * | alg_oid, |
| BYTE * | encoded_sig, | ||
| DWORD | encoded_sig_len, | ||
| BYTE ** | sig_value, | ||
| DWORD * | sig_len | ||
| ) |
Definition at line 2822 of file cert.c.
Referenced by CNG_PrepareCertSignature(), and cng_verify_msg_signature().
|
static |
Definition at line 2833 of file cert.c.
Referenced by CNG_VerifySignature().
|
static |
Definition at line 2783 of file cert.c.
Referenced by cng_prepare_signature().
|
static |
Definition at line 2861 of file cert.c.
Referenced by CRYPT_VerifyCertSignatureFromPublicKeyInfo().
|
static |
Definition at line 1535 of file cert.c.
Referenced by CertFindCertificateInStore(), and find_cert_by_issuer().
|
static |
Definition at line 1437 of file cert.c.
Referenced by CertFindCertificateInStore().
|
static |
Definition at line 1479 of file cert.c.
Referenced by CertFindCertificateInStore(), and find_cert_by_issuer().
|
static |
Definition at line 1748 of file cert.c.
Referenced by find_cert_by_name_str_a(), and find_cert_by_name_str_w().
|
static |
Definition at line 1499 of file cert.c.
Referenced by CertFindCertificateInStore().
|
static |
Definition at line 1458 of file cert.c.
Referenced by CertFindCertificateInStore(), and compare_cert_by_cert_id().
|
static |
Definition at line 1593 of file cert.c.
Referenced by CertFindCertificateInStore().
|
static |
Definition at line 1510 of file cert.c.
Referenced by CertFindCertificateInStore().
|
static |
Definition at line 1585 of file cert.c.
Referenced by CertFindCertificateInStore().
|
static |
Definition at line 1064 of file cert.c.
Referenced by find_key_prov_info_in_provider().
|
static |
Definition at line 472 of file cert.c.
Referenced by CertContext_SetKeyProvInfoProperty().
|
static |
Definition at line 868 of file cert.c.
Referenced by CryptAcquireCertificatePrivateKey().
| void CRYPT_ConvertKeyContext | ( | const struct store_CERT_KEY_CONTEXT * | src, |
| CERT_KEY_CONTEXT * | dst | ||
| ) |
Definition at line 429 of file cert.c.
Referenced by CertContext_GetProperty(), and CRYPT_ReadContextProp().
|
static |
Definition at line 3703 of file cert.c.
Referenced by CertCreateSelfSignCertificate().
|
static |
Definition at line 3585 of file cert.c.
Referenced by CertCreateSelfSignCertificate().
Definition at line 3346 of file cert.c.
Referenced by CertGetValidUsages().
|
static |
Definition at line 3639 of file cert.c.
Referenced by CertCreateSelfSignCertificate().
Definition at line 3325 of file cert.c.
Referenced by CertGetValidUsages().
|
static |
Definition at line 1275 of file cert.c.
Referenced by CertCompareIntegerBlob().
|
static |
Definition at line 2896 of file cert.c.
Referenced by CryptVerifyCertificateSignatureEx().
|
static |
Definition at line 2562 of file cert.c.
Referenced by CRYPT_VerifyCertSignatureFromPublicKeyInfo().
| BOOL WINAPI CryptAcquireCertificatePrivateKey | ( | PCCERT_CONTEXT | pCert, |
| DWORD | dwFlags, | ||
| void * | pvReserved, | ||
| HCRYPTPROV_OR_NCRYPT_KEY_HANDLE * | phCryptProv, | ||
| DWORD * | pdwKeySpec, | ||
| BOOL * | pfCallerFreeProv | ||
| ) |
Definition at line 920 of file cert.c.
Referenced by CryptSignMessage(), and testAcquireCertPrivateKey().
| BOOL WINAPI CryptFindCertificateKeyProvInfo | ( | PCCERT_CONTEXT | pCert, |
| DWORD | dwFlags, | ||
| void * | pvReserved | ||
| ) |
Definition at line 1223 of file cert.c.
| BOOL WINAPI CryptHashCertificate | ( | HCRYPTPROV_LEGACY | hCryptProv, |
| ALG_ID | Algid, | ||
| DWORD | dwFlags, | ||
| const BYTE * | pbEncoded, | ||
| DWORD | cbEncoded, | ||
| BYTE * | pbComputedHash, | ||
| DWORD * | pcbComputedHash | ||
| ) |
Definition at line 2258 of file cert.c.
Referenced by CertContext_GetHashProp(), checkCRLHash(), checkHash(), CRLContext_GetHashProp(), CTLContext_GetHashProp(), test_communication(), testAddSerialized(), testCryptHashCert(), and testRegStore().
| BOOL WINAPI CryptHashCertificate2 | ( | LPCWSTR | pwszCNGHashAlgid, |
| DWORD | dwFlags, | ||
| void * | pvReserved, | ||
| const BYTE * | pbEncoded, | ||
| DWORD | cbEncoded, | ||
| BYTE * | pbComputedHash, | ||
| DWORD * | pcbComputedHash | ||
| ) |
Definition at line 2287 of file cert.c.
Referenced by testCryptHashCert2().
| BOOL WINAPI CryptHashPublicKeyInfo | ( | HCRYPTPROV_LEGACY | hCryptProv, |
| ALG_ID | Algid, | ||
| DWORD | dwFlags, | ||
| DWORD | dwCertEncodingType, | ||
| PCERT_PUBLIC_KEY_INFO | pInfo, | ||
| BYTE * | pbComputedHash, | ||
| DWORD * | pcbComputedHash | ||
| ) |
Definition at line 2340 of file cert.c.
Referenced by testHashPublicKeyInfo().
| BOOL WINAPI CryptHashToBeSigned | ( | HCRYPTPROV_LEGACY | hCryptProv, |
| DWORD | dwCertEncodingType, | ||
| const BYTE * | pbEncoded, | ||
| DWORD | cbEncoded, | ||
| BYTE * | pbComputedHash, | ||
| DWORD * | pcbComputedHash | ||
| ) |
Definition at line 2384 of file cert.c.
Referenced by CertContext_GetProperty(), and testHashToBeSigned().
| BOOL WINAPI CryptSetKeyIdentifierProperty | ( | const CRYPT_HASH_BLOB * | pKeyIdentifier, |
| DWORD | dwPropId, | ||
| DWORD | dwFlags, | ||
| LPCWSTR | pwszComputerName, | ||
| void * | pvReserved, | ||
| const void * | pvData | ||
| ) |
| BOOL WINAPI CryptSignAndEncodeCertificate | ( | HCRYPTPROV_OR_NCRYPT_KEY_HANDLE | hCryptProv, |
| DWORD | dwKeySpec, | ||
| DWORD | dwCertEncodingType, | ||
| LPCSTR | lpszStructType, | ||
| const void * | pvStructInfo, | ||
| PCRYPT_ALGORITHM_IDENTIFIER | pSignatureAlgorithm, | ||
| const void * | pvHashAuxInfo, | ||
| BYTE * | pbEncoded, | ||
| DWORD * | pcbEncoded | ||
| ) |
Definition at line 2488 of file cert.c.
Referenced by key_prov_info_matches_cert(), and testSignAndEncodeCert().
| BOOL WINAPI CryptSignCertificate | ( | HCRYPTPROV_OR_NCRYPT_KEY_HANDLE | hCryptProv, |
| DWORD | dwKeySpec, | ||
| DWORD | dwCertEncodingType, | ||
| const BYTE * | pbEncodedToBeSigned, | ||
| DWORD | cbEncodedToBeSigned, | ||
| PCRYPT_ALGORITHM_IDENTIFIER | pSignatureAlgorithm, | ||
| const void * | pvHashAuxInfo, | ||
| BYTE * | pbSignature, | ||
| DWORD * | pcbSignature | ||
| ) |
Definition at line 2429 of file cert.c.
Referenced by CRYPT_CreateSignedCert(), CryptSignAndEncodeCertificate(), and testSignCert().
| BOOL WINAPI CryptVerifyCertificateSignature | ( | HCRYPTPROV_LEGACY | hCryptProv, |
| DWORD | dwCertEncodingType, | ||
| const BYTE * | pbEncoded, | ||
| DWORD | cbEncoded, | ||
| PCERT_PUBLIC_KEY_INFO | pPublicKey | ||
| ) |
Definition at line 2551 of file cert.c.
Referenced by test_VerifySignature(), testCertSigs(), and testVerifyCertSig().
| BOOL WINAPI CryptVerifyCertificateSignatureEx | ( | HCRYPTPROV_LEGACY | hCryptProv, |
| DWORD | dwCertEncodingType, | ||
| DWORD | dwSubjectType, | ||
| void * | pvSubject, | ||
| DWORD | dwIssuerType, | ||
| void * | pvIssuer, | ||
| DWORD | dwFlags, | ||
| void * | pvReserved | ||
| ) |
Definition at line 2914 of file cert.c.
Referenced by CertGetCRLFromStore(), CertVerifySubjectCertificateContext(), compare_crl_issued_by(), CRYPT_CheckRootCert(), CRYPT_CheckSimpleChain(), CryptVerifyCertificateSignature(), and testVerifyCertSigEx().
|
static |
Definition at line 1640 of file cert.c.
Referenced by CertFindCertificateInStore(), find_cert_by_name_str_a(), and find_cert_by_name_str_w().
|
static |
Definition at line 1646 of file cert.c.
Referenced by CertFindCertificateInStore().
|
static |
Definition at line 1778 of file cert.c.
Referenced by CertFindCertificateInStore().
|
static |
Definition at line 1804 of file cert.c.
Referenced by CertFindCertificateInStore().
|
static |
Definition at line 1100 of file cert.c.
Referenced by find_matching_provider().
|
static |
Definition at line 1133 of file cert.c.
Referenced by CryptFindCertificateKeyProvInfo().
|
static |
Definition at line 2143 of file cert.c.
Referenced by CertIsRDNAttrsInCertificateName().
|
static |
Definition at line 440 of file cert.c.
Referenced by CertGetCertificateContextProperty().
|
static |
Definition at line 1025 of file cert.c.
Referenced by cert_prov_info_matches_cert(), and container_matches_cert().
| WINE_DEFAULT_DEBUG_CHANNEL | ( | crypt | ) |
|
static |
Definition at line 116 of file cert.c.
Referenced by Cert_clone(), and CertCreateCertificateContext().