We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec4d926 commit 1cf4fb7Copy full SHA for 1cf4fb7
ext/openssl/tests/bug73711.cnf
ext/openssl/tests/bug73711.phpt
@@ -4,9 +4,14 @@ Bug #73711: Segfault in openssl_pkey_new when generating DSA or DH key
4
openssl
5
--FILE--
6
<?php
7
-$cnf = __DIR__ . DIRECTORY_SEPARATOR . 'bug73711.cnf';
8
-var_dump(openssl_pkey_new(["private_key_type" => OPENSSL_KEYTYPE_DSA, 'config' => $cnf]));
9
-var_dump(openssl_pkey_new(["private_key_type" => OPENSSL_KEYTYPE_DH, 'config' => $cnf]));
+var_dump(openssl_pkey_new([
+ "private_key_type" => OPENSSL_KEYTYPE_DSA,
+ "private_key_bits" => 1024,
10
+]));
11
12
+ "private_key_type" => OPENSSL_KEYTYPE_DH,
13
+ "private_key_bits" => 512,
14
15
echo "DONE";
16
?>
17
--EXPECTF--
0 commit comments