diff options
author | Remi Collet <remi@php.net> | 2017-04-26 14:41:40 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2017-04-26 14:41:40 +0200 |
commit | f639b64dca0a72bd7cbb8f773d8934036a175e20 (patch) | |
tree | 095321ca98528c69d51e2f7f9604c92fba65c7fd | |
parent | 8cfaea656c9ce1edf9eb29d796ee6d9482a6d98a (diff) | |
download | php-git-f639b64dca0a72bd7cbb8f773d8934036a175e20.tar.gz |
rely on bundle config, instead of system one
-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"; |