com php-src: rely on bundle config, instead of system one: ext/openssl/tests/bug73833.phpt
| From: | Anatol Belski | Date: | Wed, 26 Apr 2017 13:03:54 +0000 |
| Subject: | com php-src: rely on bundle config, instead of system one: ext/openssl/tests/bug73833.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-97701@lists.php.net to get a copy of this message | ||
Commit: 9e89e62148a5b6d554fc55943d3b799b4688ae67
Author: Remi Collet <remi@php.net> Wed, 26 Apr 2017 14:41:40 +0200
Committer: Anatol Belski <ab@php.net> Wed, 26 Apr 2017 15:03:54 +0200
Parents: ca51b12d3aa52c334587f6fb8e280026eb3f1335
Branches: PHP-7.0.19
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9e89e62148a5b6d554fc55943d3b799b4688ae67
Log:
rely on bundle config, instead of system one
(cherry picked from commit f639b64dca0a72bd7cbb8f773d8934036a175e20)
Changed paths:
M ext/openssl/tests/bug73833.phpt
Diff:
diff --git a/ext/openssl/tests/bug73833.phpt b/ext/openssl/tests/bug73833.phpt
index e6a298f..cf46092 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";