|
ReactOS 0.4.17-dev-444-g71ee754
|
#include <stdarg.h>#include <wchar.h>#include "windef.h"#include "winbase.h"#include "winnls.h"#include "wincrypt.h"#include "wininet.h"#include "wine/debug.h"#include "crypt32_private.h"
Go to the source code of this file.
Classes | |
| struct | _CertificateChainEngine |
| struct | _CERT_CHAIN_ENGINE_CONFIG_NO_EXCLUSIVE_ROOT |
| struct | _CertificateChain |
| struct | _CERT_CHAIN_PARA_NO_EXTRA_FIELDS |
Macros | |
| #define | CERT_CHAIN_PARA_HAS_EXTRA_FIELDS |
| #define | CERT_REVOCATION_PARA_HAS_EXTRA_FIELDS |
| #define | DEFAULT_CYCLE_MODULUS 7 |
| #define | trace_usage_bit(bits, bit) if ((bits) & (bit)) TRACE_(chain)("%s\n", #bit) |
| #define | trace_cert_type_bit(bits, bit) if ((bits) & (bit)) TRACE_(chain)("%s\n", #bit) |
| #define | CHAIN_QUALITY_SIGNATURE_VALID 0x16 |
| #define | CHAIN_QUALITY_TIME_VALID 8 |
| #define | CHAIN_QUALITY_COMPLETE_CHAIN 4 |
| #define | CHAIN_QUALITY_BASIC_CONSTRAINTS 2 |
| #define | CHAIN_QUALITY_TRUSTED_ROOT 1 |
| #define | CHAIN_QUALITY_HIGHEST |
| #define | IS_TRUST_ERROR_SET(TrustStatus, bits) (TrustStatus)->dwErrorStatus & (bits) |
Typedefs | |
| typedef struct _CertificateChainEngine | CertificateChainEngine |
| typedef struct _CERT_CHAIN_ENGINE_CONFIG_NO_EXCLUSIVE_ROOT | CERT_CHAIN_ENGINE_CONFIG_NO_EXCLUSIVE_ROOT |
| typedef struct _CertificateChain | CertificateChain |
| typedef struct _CERT_CHAIN_PARA_NO_EXTRA_FIELDS | CERT_CHAIN_PARA_NO_EXTRA_FIELDS |
| typedef BOOL(WINAPI * | CertVerifyCertificateChainPolicyFunc) (LPCSTR szPolicyOID, PCCERT_CHAIN_CONTEXT pChainContext, PCERT_CHAIN_POLICY_PARA pPolicyPara, PCERT_CHAIN_POLICY_STATUS pPolicyStatus) |
Variables | |
| static CertificateChainEngine * | default_cu_engine |
| static CertificateChainEngine * | default_lm_engine |
| static BYTE | msTestPubKey1 [] |
| static BYTE | msTestPubKey2 [] |
| static BYTE | msPubKey1 [] |
| static BYTE | msPubKey2 [] |
| static BYTE | msPubKey3 [] |
| static BYTE | msPubKey4 [] |
| static BYTE | msPubKey5 [] |
| #define CHAIN_QUALITY_HIGHEST |
| typedef struct _CERT_CHAIN_ENGINE_CONFIG_NO_EXCLUSIVE_ROOT CERT_CHAIN_ENGINE_CONFIG_NO_EXCLUSIVE_ROOT |
| typedef struct _CertificateChain CertificateChain |
| typedef BOOL(WINAPI * CertVerifyCertificateChainPolicyFunc) (LPCSTR szPolicyOID, PCCERT_CHAIN_CONTEXT pChainContext, PCERT_CHAIN_POLICY_PARA pPolicyPara, PCERT_CHAIN_POLICY_STATUS pPolicyStatus) |
|
static |
Definition at line 882 of file chain.c.
Referenced by alt_name_matches_excluded_name(), and alt_name_matches_permitted_name().
|
static |
Definition at line 925 of file chain.c.
Referenced by compare_alt_name_with_constraints().
|
static |
Definition at line 937 of file chain.c.
Referenced by compare_alt_name_with_constraints().
| BOOL WINAPI CertCreateCertificateChainEngine | ( | PCERT_CHAIN_ENGINE_CONFIG | pConfig, |
| HCERTCHAINENGINE * | phChainEngine | ||
| ) |
Definition at line 221 of file chain.c.
Referenced by check_ssl_policy(), CRYPTDLG_MakeEngine(), save_pfx(), and testCreateCertChainEngine().
| PCCERT_CHAIN_CONTEXT WINAPI CertDuplicateCertificateChain | ( | PCCERT_CHAIN_CONTEXT | pChainContext | ) |
Definition at line 2944 of file chain.c.
Referenced by CRYPTDLG_CopyChain(), and InternetGetSecurityInfoByURLW().
| PCCERT_CHAIN_CONTEXT WINAPI CertFindChainInStore | ( | HCERTSTORE | store, |
| DWORD | certEncodingType, | ||
| DWORD | findFlags, | ||
| DWORD | findType, | ||
| const void * | findPara, | ||
| PCCERT_CHAIN_CONTEXT | prevChainContext | ||
| ) |
| VOID WINAPI CertFreeCertificateChain | ( | PCCERT_CHAIN_CONTEXT | pChainContext | ) |
Definition at line 2956 of file chain.c.
Referenced by _test_security_info(), CertGetCertificateChain(), CertTrustFinalPolicy(), check_and_store_certs(), checkChainPolicyStatus(), CRYPT_FreeLowerQualityChains(), InitFunctionPtrs(), netconn_verify_cert(), save_cert_as_cms(), save_pfx(), server_release(), SoftpubCleanup(), test_CERT_CHAIN_PARA_cbSize(), testGetCertChain(), and testVerifyCertChainPolicy().
| void WINAPI CertFreeCertificateChainEngine | ( | HCERTCHAINENGINE | hChainEngine | ) |
Definition at line 245 of file chain.c.
Referenced by CertTrustFinalPolicy(), check_and_store_certs(), check_ssl_policy(), get_chain_engine(), save_pfx(), and testCreateCertChainEngine().
| BOOL WINAPI CertGetCertificateChain | ( | HCERTCHAINENGINE | hChainEngine, |
| PCCERT_CONTEXT | pCertContext, | ||
| LPFILETIME | pTime, | ||
| HCERTSTORE | hAdditionalStore, | ||
| PCERT_CHAIN_PARA | pChainPara, | ||
| DWORD | dwFlags, | ||
| LPVOID | pvReserved, | ||
| PCCERT_CHAIN_CONTEXT * | ppChainContext | ||
| ) |
Definition at line 2875 of file chain.c.
Referenced by CertTrustFinalPolicy(), check_and_store_certs(), getChain(), netconn_verify_cert(), save_cert_as_cms(), save_pfx(), test_CERT_CHAIN_PARA_cbSize(), testGetCertChain(), testVerifyCertChainPolicy(), and WINTRUST_CreateChainForSigner().
| BOOL WINAPI CertVerifyCertificateChainPolicy | ( | LPCSTR | szPolicyOID, |
| PCCERT_CHAIN_CONTEXT | pChainContext, | ||
| PCERT_CHAIN_POLICY_PARA | pPolicyPara, | ||
| PCERT_CHAIN_POLICY_STATUS | pPolicyStatus | ||
| ) |
Definition at line 3806 of file chain.c.
Referenced by checkChainPolicyStatus(), netconn_verify_cert(), SoftpubAuthenticode(), testVerifyCertChainPolicy(), and WINTRUST_DefaultPolicy().
|
static |
Definition at line 963 of file chain.c.
Referenced by CRYPT_CheckNameConstraints().
|
static |
Definition at line 1122 of file chain.c.
Referenced by CRYPT_CheckNameConstraints().
|
static |
Definition at line 1053 of file chain.c.
Referenced by compare_subject_with_constraints().
|
static |
Definition at line 2582 of file chain.c.
Referenced by CertGetCertificateChain().
|
static |
Definition at line 423 of file chain.c.
Referenced by CRYPT_BuildAlternateContextFromChain(), CRYPT_BuildSimpleChain(), and CRYPT_GetSimpleChainForCert().
|
inlinestatic |
Definition at line 54 of file chain.c.
Referenced by CRYPT_CreateChainEngine().
|
static |
Definition at line 2438 of file chain.c.
Referenced by CertGetCertificateChain().
|
static |
Definition at line 2247 of file chain.c.
Referenced by CertGetCertificateChain().
|
static |
Definition at line 2177 of file chain.c.
Referenced by CRYPT_BuildAlternateContextFromChain(), and CRYPT_GetSimpleChainForCert().
|
static |
Definition at line 2524 of file chain.c.
Referenced by CRYPT_ChooseHighestQualityChain().
|
static |
Definition at line 576 of file chain.c.
Referenced by CRYPT_CheckSimpleChain().
|
static |
Definition at line 1275 of file chain.c.
Referenced by CRYPT_CheckSimpleChain().
|
static |
Definition at line 1377 of file chain.c.
Referenced by CRYPT_CheckSimpleChain().
|
static |
Definition at line 1192 of file chain.c.
Referenced by CRYPT_CheckChainNameConstraints().
|
static |
Definition at line 1353 of file chain.c.
Referenced by CRYPT_CheckChainPolicies().
|
static |
Definition at line 89 of file chain.c.
Referenced by CertCreateCertificateChainEngine().
|
static |
Definition at line 487 of file chain.c.
Referenced by CRYPT_CheckSimpleChain().
|
static |
Definition at line 1875 of file chain.c.
Referenced by CRYPT_BuildAlternateContextFromChain(), and CRYPT_GetSimpleChainForCert().
|
static |
Definition at line 379 of file chain.c.
Referenced by CRYPT_AddCertToSimpleChain().
|
static |
Definition at line 474 of file chain.c.
Referenced by CRYPT_CheckRootCert().
|
static |
Definition at line 2741 of file chain.c.
Referenced by CertGetCertificateChain().
|
static |
Definition at line 2550 of file chain.c.
Referenced by CertGetCertificateChain().
|
inlinestatic |
Definition at line 63 of file chain.c.
Referenced by CRYPT_CreateChainEngine().
|
inlinestatic |
Definition at line 412 of file chain.c.
Referenced by CRYPT_AddCertToSimpleChain(), CRYPT_BuildAlternateContextFromChain(), CRYPT_CheckChainNameConstraints(), CRYPT_CheckChainPolicies(), and CRYPT_CheckSimpleChain().
|
static |
Definition at line 2373 of file chain.c.
Referenced by CRYPT_BuildAlternateContextFromChain().
|
static |
Definition at line 2292 of file chain.c.
Referenced by CRYPT_CopyChainToElement().
| HCERTCHAINENGINE CRYPT_CreateChainEngine | ( | HCERTSTORE | root, |
| DWORD | system_store, | ||
| const CERT_CHAIN_ENGINE_CONFIG * | config | ||
| ) |
Definition at line 115 of file chain.c.
Referenced by CertCreateCertificateChainEngine(), check_and_store_certs(), and get_chain_engine().
|
static |
Definition at line 1798 of file chain.c.
Referenced by CRYPT_CheckSimpleChain().
|
static |
Definition at line 509 of file chain.c.
Referenced by CRYPT_CheckBasicConstraintsForCA(), and CRYPT_CheckSimpleChain().
|
static |
Definition at line 72 of file chain.c.
Referenced by CRYPT_CheckRestrictedRoot(), and CRYPT_CheckTrustedStatus().
|
static |
Definition at line 1978 of file chain.c.
Referenced by CRYPT_GetIssuer().
|
static |
Definition at line 2607 of file chain.c.
Referenced by CRYPT_VerifyChainRevocation().
|
static |
Definition at line 2358 of file chain.c.
Referenced by CertFreeCertificateChain(), CRYPT_BuildAlternateContextFromChain(), and CRYPT_CopyChainToElement().
|
static |
Definition at line 373 of file chain.c.
Referenced by CRYPT_CheckSimpleChainForCycles(), and CRYPT_FreeSimpleChain().
|
static |
Definition at line 2347 of file chain.c.
Referenced by CertGetCertificateChain(), and CRYPT_FreeChainContext().
|
static |
Definition at line 464 of file chain.c.
Referenced by CRYPT_BuildCandidateChainFromCert(), CRYPT_FreeChainContext(), and CRYPT_GetSimpleChainForCert().
|
static |
Definition at line 2052 of file chain.c.
Referenced by CRYPT_BuildAlternateContextFromChain(), and CRYPT_BuildSimpleChain().
|
static |
Definition at line 1211 of file chain.c.
Referenced by CRYPT_CheckChainNameConstraints().
|
static |
Definition at line 1335 of file chain.c.
Referenced by CRYPT_CheckChainPolicies().
|
static |
Definition at line 2216 of file chain.c.
Referenced by CRYPT_BuildCandidateChainFromCert().
| DWORD CRYPT_IsCertificateSelfSigned | ( | const CERT_CONTEXT * | cert | ) |
Definition at line 264 of file chain.c.
Referenced by CertGetIssuerCertificateFromStore(), CRYPT_BuildSimpleChain(), CRYPT_CheckChainNameConstraints(), and CRYPT_CheckSimpleChain().
|
static |
Definition at line 1836 of file chain.c.
Referenced by CRYPT_CheckSimpleChain().
|
static |
Definition at line 1106 of file chain.c.
Referenced by compare_subject_with_constraints().
|
inlinestatic |
Definition at line 403 of file chain.c.
Referenced by CRYPT_BuildSimpleChain(), and CRYPT_CheckSimpleChain().
|
static |
Definition at line 1230 of file chain.c.
Referenced by CRYPT_CheckChainNameConstraints().
|
static |
Definition at line 1719 of file chain.c.
Referenced by CRYPT_CheckSimpleChain().
|
static |
Definition at line 2628 of file chain.c.
Referenced by CertGetCertificateChain().
|
static |
Definition at line 2209 of file chain.c.
Referenced by CertGetCertificateChain(), CRYPT_BuildAlternateContextFromChain(), and CRYPT_GetSimpleChainForCert().
|
static |
Definition at line 860 of file chain.c.
Referenced by alt_name_matches(), and compare_subject_with_constraints().
Definition at line 771 of file chain.c.
Referenced by alt_name_matches().
Definition at line 643 of file chain.c.
Referenced by rfc822_name_matches(), and url_matches().
|
static |
Definition at line 1461 of file chain.c.
Referenced by dump_extension().
|
static |
Definition at line 1422 of file chain.c.
Referenced by dump_alt_name(), and dump_general_subtree().
|
static |
Definition at line 3074 of file chain.c.
Referenced by verify_authenticode_policy().
|
static |
Definition at line 1480 of file chain.c.
Referenced by dump_extension().
|
static |
Definition at line 1497 of file chain.c.
Referenced by dump_extension().
|
static |
Definition at line 1572 of file chain.c.
Referenced by dump_extension().
|
static |
Definition at line 2860 of file chain.c.
Referenced by CertGetCertificateChain().
|
static |
Definition at line 1685 of file chain.c.
Referenced by CRYPT_CheckSimpleChain().
|
static |
Definition at line 1599 of file chain.c.
Referenced by dump_extension().
|
static |
Definition at line 1643 of file chain.c.
Referenced by dump_element().
|
static |
|
static |
Definition at line 1514 of file chain.c.
Referenced by dump_extension().
|
static |
Definition at line 1548 of file chain.c.
Referenced by dump_extension().
|
static |
Definition at line 1617 of file chain.c.
Referenced by dump_extension().
|
static |
Definition at line 3796 of file chain.c.
Referenced by CertVerifyCertificateChainPolicy().
|
static |
Definition at line 3438 of file chain.c.
Referenced by verify_ssl_policy().
|
static |
Definition at line 2847 of file chain.c.
Referenced by dump_chain_para().
Definition at line 1671 of file chain.c.
Referenced by CRYPT_CheckSimpleChain(), debugstr_filetime(), and dump_element().
|
static |
Definition at line 2978 of file chain.c.
Referenced by verify_base_policy(), verify_basic_constraints_policy(), and verify_ssl_policy().
|
static |
Definition at line 3213 of file chain.c.
Referenced by match_dns_to_subject_dn().
|
static |
Definition at line 197 of file chain.c.
Referenced by CertFreeCertificateChainEngine(), and default_chain_engine_free().
|
static |
Definition at line 162 of file chain.c.
Referenced by CertFreeCertificateChainEngine(), and CertGetCertificateChain().
|
inlinestatic |
Definition at line 951 of file chain.c.
Referenced by CRYPT_CheckNameConstraints(), and verify_ssl_policy().
|
static |
Definition at line 816 of file chain.c.
Referenced by alt_name_matches().
|
static |
Definition at line 3295 of file chain.c.
Referenced by match_dns_to_subject_dn().
|
static |
Definition at line 3145 of file chain.c.
Referenced by verify_ssl_policy().
|
static |
Definition at line 3375 of file chain.c.
Referenced by verify_ssl_policy().
|
static |
Definition at line 3238 of file chain.c.
Referenced by match_common_name().
|
static |
Definition at line 1406 of file chain.c.
Referenced by dump_alt_name_entry().
|
static |
Definition at line 1013 of file chain.c.
Referenced by compare_subject_with_email_constraints().
|
static |
Definition at line 1031 of file chain.c.
Referenced by compare_subject_with_email_constraints().
|
static |
Definition at line 747 of file chain.c.
Referenced by alt_name_matches(), rfc822_attr_matches_excluded_name(), and rfc822_attr_matches_permitted_name().
Definition at line 678 of file chain.c.
Referenced by alt_name_matches().
|
static |
Definition at line 3086 of file chain.c.
Referenced by CertVerifyCertificateChainPolicy().
|
static |
Definition at line 2994 of file chain.c.
Referenced by CertVerifyCertificateChainPolicy(), and verify_authenticode_policy().
|
static |
Definition at line 3127 of file chain.c.
Referenced by CertVerifyCertificateChainPolicy().
|
static |
Definition at line 3738 of file chain.c.
Referenced by CertVerifyCertificateChainPolicy().
|
static |
Definition at line 3450 of file chain.c.
Referenced by CertVerifyCertificateChainPolicy().
| WINE_DECLARE_DEBUG_CHANNEL | ( | chain | ) |
| WINE_DEFAULT_DEBUG_CHANNEL | ( | crypt | ) |
|
static |
Definition at line 160 of file chain.c.
Referenced by default_chain_engine_free(), and get_chain_engine().
|
static |
Definition at line 160 of file chain.c.
Referenced by default_chain_engine_free(), and get_chain_engine().
|
static |
Definition at line 3586 of file chain.c.
Referenced by verify_ms_root_policy().
|
static |
Definition at line 3605 of file chain.c.
Referenced by verify_ms_root_policy().
|
static |
Definition at line 3624 of file chain.c.
Referenced by verify_ms_root_policy().
|
static |
Definition at line 3662 of file chain.c.
Referenced by verify_ms_root_policy().
|
static |
Definition at line 3700 of file chain.c.
Referenced by verify_ms_root_policy().
|
static |
Definition at line 3061 of file chain.c.
Referenced by verify_authenticode_policy().
|
static |
Definition at line 3067 of file chain.c.
Referenced by verify_authenticode_policy().