diff options
author | Remi Collet <remi@php.net> | 2017-04-26 14:41:40 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2017-04-26 15:03:54 +0200 |
commit | 9e89e62148a5b6d554fc55943d3b799b4688ae67 (patch) | |
tree | 1eb50f1da92c1dfde5caf7178140ca8b815f1c7b | |
parent | ca51b12d3aa52c334587f6fb8e280026eb3f1335 (diff) | |
download | php-git-9e89e62148a5b6d554fc55943d3b799b4688ae67.tar.gz |
rely on bundle config, instead of system one
(cherry picked from commit f639b64dca0a72bd7cbb8f773d8934036a175e20)
-rw-r--r-- | ext/openssl/tests/bug73833.phpt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/openssl/tests/bug73833.phpt b/ext/openssl/tests/bug73833.phpt index e6a298fdcc..cf46092a46 100644 --- a/ext/openssl/tests/bug73833.phpt +++ b/ext/openssl/tests/bug73833.phpt @@ -7,11 +7,12 @@ if (!extension_loaded("openssl")) die("skip openssl not loaded"); --FILE-- <?php $passwords = ["abc\x00defghijkl", "abcdefghikjl"]; +$conf = ['config' => __DIR__.'/openssl.cnf']; foreach($passwords as $password) { - $key = openssl_pkey_new(); + $key = openssl_pkey_new($conf); - if (openssl_pkey_export($key, $privatePEM, $password) === false) { + if (openssl_pkey_export($key, $privatePEM, $password, $conf) === false) { echo "Failed to encrypt.\n"; } else { echo "Encrypted!\n"; |