com php-src: rely on bundle config, instead of system one: ext/openssl/tests/bug73833.phpt

[email protected] (Anatol Belski)
Newsgroups php.cvs
Message-ID <[email protected]>
Commit:    9e89e62148a5b6d554fc55943d3b799b4688ae67
Author:    Remi Collet <[email protected]>         Wed, 26 Apr 2017 14:41:40 +0200
Committer: Anatol Belski <[email protected]>      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";
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.