crypt32: Add a default cycle detection modulus.
This commit is contained in:
parent
cf2047fd72
commit
45eef63a35
|
@ -25,6 +25,8 @@
|
|||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(crypt);
|
||||
|
||||
#define DEFAULT_CYCLE_MODULUS 7
|
||||
|
||||
static HCERTCHAINENGINE CRYPT_defaultChainEngine;
|
||||
|
||||
/* This represents a subset of a certificate chain engine: it doesn't include
|
||||
|
@ -149,7 +151,10 @@ BOOL WINAPI CertCreateCertificateChainEngine(PCERT_CHAIN_ENGINE_CONFIG pConfig,
|
|||
engine->dwUrlRetrievalTimeout = pConfig->dwUrlRetrievalTimeout;
|
||||
engine->MaximumCachedCertificates =
|
||||
pConfig->MaximumCachedCertificates;
|
||||
if (pConfig->CycleDetectionModulus)
|
||||
engine->CycleDetectionModulus = pConfig->CycleDetectionModulus;
|
||||
else
|
||||
engine->CycleDetectionModulus = DEFAULT_CYCLE_MODULUS;
|
||||
*phChainEngine = (HCERTCHAINENGINE)engine;
|
||||
ret = TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue