From 74bc652de8845c3b85a5f491c3c37de6ac0618da Mon Sep 17 00:00:00 2001 From: Rob Richards Date: Thu, 3 Jul 2008 19:40:15 +0000 Subject: [PATCH] fix key container access --- ext/mcrypt/mcrypt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.50.1