diff options
author | Remi Collet <remi@php.net> | 2017-04-26 14:42:02 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2017-04-26 14:42:02 +0200 |
commit | 286ee990888cf13deda43ecef7bb50e2537696d1 (patch) | |
tree | 9d49812e69f30aaf319cf06dd461110ffc6966c2 /ext/openssl | |
parent | e7af9273f53755cf34afb8a6d8b679e4a57d9562 (diff) | |
parent | 3f6d9fe9cc1dd47c32a98677cf9c8fdade805d89 (diff) | |
download | php-git-286ee990888cf13deda43ecef7bb50e2537696d1.tar.gz |
Merge branch 'PHP-7.1'
* PHP-7.1:
rely on bundle config, instead of system one
Diffstat (limited to 'ext/openssl')
-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"; |