php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #61405
Patch php54_022.diff revision 2012-03-15 19:43 UTC by ab@php.net
Patch php53_022.diff revision 2012-03-15 19:43 UTC by ab@php.net

Patch php54_022.diff for OpenSSL related Bug #61405

Patch version 2012-03-15 19:43 UTC

Return to Bug #61405 | Download this patch
Patch Revisions:

Developer: ab@php.net

Index: ext/openssl/tests/022.phpt
===================================================================
--- ext/openssl/tests/022.phpt	(Revision 324268)
+++ ext/openssl/tests/022.phpt	(Arbeitskopie)
@@ -5,6 +5,8 @@
 --FILE--
 <?php
 $wrong = "wrong";
+$config = __DIR__ . DIRECTORY_SEPARATOR . 'openssl.cnf';
+$config_arg = array('config' => $config);
 
 $dn = array(
 	"countryName" => "BR",
@@ -18,10 +20,11 @@
 	"digest_alg" => "sha1",
 	"private_key_bits" => 2048,
 	"private_key_type" => OPENSSL_KEYTYPE_DSA,
-	"encrypt_key" => true
+	"encrypt_key" => true,
+	"config" => $config,
 	);
 
-$privkey = openssl_pkey_new();
+$privkey = openssl_pkey_new($config_arg);
 $csr = openssl_csr_new($dn, $privkey, $args);
 var_dump(openssl_csr_export($csr, $output));
 var_dump(openssl_csr_export($wrong, $output));
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 07:01:28 2024 UTC