diff options
author | Anatoliy Belsky <ab@php.net> | 2012-03-27 16:05:05 +0200 |
---|---|---|
committer | Anatoliy Belsky <ab@php.net> | 2012-03-27 16:07:59 +0200 |
commit | b638d3020c79e15c7187f25175a956fb9e3fe213 (patch) | |
tree | 531c41982a36b40298b12602d220ca3c48cfb63b | |
parent | e55718b09121c79f3a6b0cfb7c446112fb378402 (diff) | |
download | php-git-b638d3020c79e15c7187f25175a956fb9e3fe213.tar.gz |
Fix bug #61405 ext\openssl\tests\022.phpt fails
-rw-r--r-- | ext/openssl/tests/022.phpt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/openssl/tests/022.phpt b/ext/openssl/tests/022.phpt index cbdebece8d..1fa84d9f42 100644 --- a/ext/openssl/tests/022.phpt +++ b/ext/openssl/tests/022.phpt @@ -5,6 +5,8 @@ openssl_csr_export() tests --FILE-- <?php $wrong = "wrong"; +$config = __DIR__ . DIRECTORY_SEPARATOR . 'openssl.cnf'; +$config_arg = array('config' => $config); $dn = array( "countryName" => "BR", @@ -18,10 +20,11 @@ $args = array( "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)); |