ReactOS 0.4.16-dev-21-g2af6fd4
|
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wincrypt.h"
#include "wininet.h"
#include "wine/debug.h"
#include "wine/unicode.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 | NONAMELESSUNION |
#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 const WCHAR | rootW [] = { 'R','o','o','t',0 } |
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 [] |
#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 886 of file chain.c.
Referenced by alt_name_matches_excluded_name(), and alt_name_matches_permitted_name().
|
static |
Definition at line 929 of file chain.c.
Referenced by compare_alt_name_with_constraints().
|
static |
Definition at line 941 of file chain.c.
Referenced by compare_alt_name_with_constraints().
BOOL WINAPI CertCreateCertificateChainEngine | ( | PCERT_CHAIN_ENGINE_CONFIG | pConfig, |
HCERTCHAINENGINE * | phChainEngine | ||
) |
Definition at line 225 of file chain.c.
Referenced by CRYPTDLG_MakeEngine(), and save_pfx().
PCCERT_CHAIN_CONTEXT WINAPI CertDuplicateCertificateChain | ( | PCCERT_CHAIN_CONTEXT | pChainContext | ) |
Definition at line 2948 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 2960 of file chain.c.
Referenced by _test_security_info(), CertGetCertificateChain(), CertTrustFinalPolicy(), check_and_store_certs(), CRYPT_FreeLowerQualityChains(), InitFunctionPtrs(), netconn_verify_cert(), save_cert_as_cms(), save_pfx(), server_release(), and SoftpubCleanup().
void WINAPI CertFreeCertificateChainEngine | ( | HCERTCHAINENGINE | hChainEngine | ) |
Definition at line 249 of file chain.c.
Referenced by CertTrustFinalPolicy(), check_and_store_certs(), get_chain_engine(), and save_pfx().
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 2879 of file chain.c.
Referenced by CertTrustFinalPolicy(), check_and_store_certs(), netconn_verify_cert(), save_cert_as_cms(), save_pfx(), testGetCertChain(), 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 3716 of file chain.c.
Referenced by netconn_verify_cert(), SoftpubAuthenticode(), and WINTRUST_DefaultPolicy().
|
static |
Definition at line 967 of file chain.c.
Referenced by CRYPT_CheckNameConstraints().
|
static |
Definition at line 1126 of file chain.c.
Referenced by CRYPT_CheckNameConstraints().
|
static |
Definition at line 1057 of file chain.c.
Referenced by compare_subject_with_constraints().
|
static |
Definition at line 2586 of file chain.c.
Referenced by CertGetCertificateChain().
|
static |
Definition at line 427 of file chain.c.
Referenced by CRYPT_BuildAlternateContextFromChain(), CRYPT_BuildSimpleChain(), and CRYPT_GetSimpleChainForCert().
|
inlinestatic |
Definition at line 52 of file chain.c.
Referenced by CRYPT_CreateChainEngine().
|
static |
Definition at line 2442 of file chain.c.
Referenced by CertGetCertificateChain().
|
static |
Definition at line 2251 of file chain.c.
Referenced by CertGetCertificateChain().
|
static |
Definition at line 2181 of file chain.c.
Referenced by CRYPT_BuildAlternateContextFromChain(), and CRYPT_GetSimpleChainForCert().
|
static |
Definition at line 2528 of file chain.c.
Referenced by CRYPT_ChooseHighestQualityChain().
|
static |
Definition at line 580 of file chain.c.
Referenced by CRYPT_CheckSimpleChain().
|
static |
Definition at line 1279 of file chain.c.
Referenced by CRYPT_CheckSimpleChain().
|
static |
Definition at line 1381 of file chain.c.
Referenced by CRYPT_CheckSimpleChain().
|
static |
Definition at line 1196 of file chain.c.
Referenced by CRYPT_CheckChainNameConstraints().
|
static |
Definition at line 1357 of file chain.c.
Referenced by CRYPT_CheckChainPolicies().
|
static |
Definition at line 89 of file chain.c.
Referenced by CertCreateCertificateChainEngine().
|
static |
Definition at line 491 of file chain.c.
Referenced by CRYPT_CheckSimpleChain().
|
static |
Definition at line 1879 of file chain.c.
Referenced by CRYPT_BuildAlternateContextFromChain(), and CRYPT_GetSimpleChainForCert().
|
static |
Definition at line 383 of file chain.c.
Referenced by CRYPT_AddCertToSimpleChain().
|
static |
Definition at line 478 of file chain.c.
Referenced by CRYPT_CheckRootCert().
|
static |
Definition at line 2745 of file chain.c.
Referenced by CertGetCertificateChain().
|
static |
Definition at line 2554 of file chain.c.
Referenced by CertGetCertificateChain().
|
inlinestatic |
Definition at line 61 of file chain.c.
Referenced by CRYPT_CreateChainEngine().
|
inlinestatic |
Definition at line 416 of file chain.c.
Referenced by CRYPT_AddCertToSimpleChain(), CRYPT_BuildAlternateContextFromChain(), CRYPT_CheckChainNameConstraints(), CRYPT_CheckChainPolicies(), and CRYPT_CheckSimpleChain().
|
static |
Definition at line 2377 of file chain.c.
Referenced by CRYPT_BuildAlternateContextFromChain().
|
static |
Definition at line 2296 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 1802 of file chain.c.
Referenced by CRYPT_CheckSimpleChain().
|
static |
Definition at line 513 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 1982 of file chain.c.
Referenced by CRYPT_GetIssuer().
|
static |
Definition at line 2611 of file chain.c.
Referenced by CRYPT_VerifyChainRevocation().
|
static |
Definition at line 2362 of file chain.c.
Referenced by CertFreeCertificateChain(), CRYPT_BuildAlternateContextFromChain(), and CRYPT_CopyChainToElement().
|
static |
Definition at line 377 of file chain.c.
Referenced by CRYPT_CheckSimpleChainForCycles(), and CRYPT_FreeSimpleChain().
|
static |
Definition at line 2351 of file chain.c.
Referenced by CertGetCertificateChain(), and CRYPT_FreeChainContext().
|
static |
Definition at line 468 of file chain.c.
Referenced by CRYPT_BuildCandidateChainFromCert(), CRYPT_FreeChainContext(), and CRYPT_GetSimpleChainForCert().
|
static |
Definition at line 2056 of file chain.c.
Referenced by CRYPT_BuildAlternateContextFromChain(), and CRYPT_BuildSimpleChain().
|
static |
Definition at line 1215 of file chain.c.
Referenced by CRYPT_CheckChainNameConstraints().
|
static |
Definition at line 1339 of file chain.c.
Referenced by CRYPT_CheckChainPolicies().
|
static |
Definition at line 2220 of file chain.c.
Referenced by CRYPT_BuildCandidateChainFromCert().
DWORD CRYPT_IsCertificateSelfSigned | ( | const CERT_CONTEXT * | cert | ) |
Definition at line 268 of file chain.c.
Referenced by CertGetIssuerCertificateFromStore(), CRYPT_BuildSimpleChain(), CRYPT_CheckChainNameConstraints(), and CRYPT_CheckSimpleChain().
|
static |
Definition at line 1840 of file chain.c.
Referenced by CRYPT_CheckSimpleChain().
|
static |
Definition at line 1110 of file chain.c.
Referenced by compare_subject_with_constraints().
|
inlinestatic |
Definition at line 407 of file chain.c.
Referenced by CRYPT_BuildSimpleChain(), and CRYPT_CheckSimpleChain().
|
static |
Definition at line 1234 of file chain.c.
Referenced by CRYPT_CheckChainNameConstraints().
|
static |
Definition at line 1723 of file chain.c.
Referenced by CRYPT_CheckSimpleChain().
|
static |
Definition at line 2632 of file chain.c.
Referenced by CertGetCertificateChain().
|
static |
Definition at line 2213 of file chain.c.
Referenced by CertGetCertificateChain(), CRYPT_BuildAlternateContextFromChain(), and CRYPT_GetSimpleChainForCert().
|
static |
Definition at line 864 of file chain.c.
Referenced by alt_name_matches(), and compare_subject_with_constraints().
Definition at line 775 of file chain.c.
Referenced by alt_name_matches().
Definition at line 647 of file chain.c.
Referenced by rfc822_name_matches(), and url_matches().
|
static |
Definition at line 1465 of file chain.c.
Referenced by dump_extension().
|
static |
Definition at line 1426 of file chain.c.
Referenced by dump_alt_name(), and dump_general_subtree().
|
static |
Definition at line 3077 of file chain.c.
Referenced by verify_authenticode_policy().
|
static |
Definition at line 1484 of file chain.c.
Referenced by dump_extension().
|
static |
Definition at line 1501 of file chain.c.
Referenced by dump_extension().
|
static |
Definition at line 1576 of file chain.c.
Referenced by dump_extension().
|
static |
Definition at line 2864 of file chain.c.
Referenced by CertGetCertificateChain().
|
static |
Definition at line 1689 of file chain.c.
Referenced by CRYPT_CheckSimpleChain().
|
static |
Definition at line 1603 of file chain.c.
Referenced by dump_extension().
|
static |
Definition at line 1647 of file chain.c.
Referenced by dump_element().
|
static |
|
static |
Definition at line 1518 of file chain.c.
Referenced by dump_extension().
|
static |
Definition at line 1552 of file chain.c.
Referenced by dump_extension().
|
static |
Definition at line 1621 of file chain.c.
Referenced by dump_extension().