Juan Lang : crypt32: Add a default cycle detection modulus.
Module: wine Branch: master Commit: 45eef63a35f27a522e4c3e24f2511593bffb987c URL: http://source.winehq.org/git/wine.git/?a=commit;h=45eef63a35f27a522e4c3e24f2... Author: Juan Lang <juan.lang(a)gmail.com> Date: Thu Aug 30 17:49:52 2007 -0700 crypt32: Add a default cycle detection modulus. --- dlls/crypt32/chain.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/dlls/crypt32/chain.c b/dlls/crypt32/chain.c index cfe05b3..f1711ac 100644 --- a/dlls/crypt32/chain.c +++ b/dlls/crypt32/chain.c @@ -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; - engine->CycleDetectionModulus = pConfig->CycleDetectionModulus; + if (pConfig->CycleDetectionModulus) + engine->CycleDetectionModulus = pConfig->CycleDetectionModulus; + else + engine->CycleDetectionModulus = DEFAULT_CYCLE_MODULUS; *phChainEngine = (HCERTCHAINENGINE)engine; ret = TRUE; }
participants (1)
-
Alexandre Julliard