From: Rob Richards Date: Thu, 3 Jul 2008 19:40:15 +0000 (+0000) Subject: fix key container access X-Git-Tag: php-5.3.0alpha1~515 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=74bc652de8845c3b85a5f491c3c37de6ac0618da;p=php fix key container access --- diff --git a/ext/mcrypt/mcrypt.c b/ext/mcrypt/mcrypt.c index 28a4371679..c28a73507f 100644 --- a/ext/mcrypt/mcrypt.c +++ b/ext/mcrypt/mcrypt.c @@ -1218,7 +1218,7 @@ int php_mcrypt_iv(php_mcrypt_iv_source source, int size, char **iv_str, int *iv_ /* It could be done using LoadLibrary but as we rely on 2k+ for 5.3, cleaner to use a clear dependency (Advapi32) and a standard API call (no f=getAddr..; f();) */ - if(!CryptAcquireContext(&hCryptProv, NULL, NULL, PROV_RSA_FULL, 0)) { + if(!CryptAcquireContext(&hCryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) { php_error_docref(NULL TSRMLS_CC, E_ERROR, "Cannot open random device"); return FAILURE; }