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

[email protected] (Remi Collet)
Newsgroups php.cvs
Message-ID <[email protected]>
Commit:    f639b64dca0a72bd7cbb8f773d8934036a175e20
Author:    Remi Collet <[email protected]>         Wed, 26 Apr 2017 14:41:40 +0200
Parents:   8cfaea656c9ce1edf9eb29d796ee6d9482a6d98a
Branches:  PHP-7.0 PHP-7.1 master

Link:       http://git.php.net/?p=php-src.git;a=commitdiff;h=f639b64dca0a72bd7cbb8f773d8934036a175e20

Log:
rely on bundle config, instead of system one

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.