mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
Remove silly code from openssl_pkey_free() test
W A T
This commit is contained in:
parent
c8244dd989
commit
8c73dfe062
@ -13,14 +13,6 @@ if (!@openssl_pkey_new())
|
||||
<?php
|
||||
echo "Creating private key\n";
|
||||
|
||||
/* stack up some entropy; performance is not critical,
|
||||
* and being slow will most likely even help the test.
|
||||
*/
|
||||
for ($z = "", $i = 0; $i < 1024; $i++) {
|
||||
$z .= $i * $i;
|
||||
usleep($i);
|
||||
}
|
||||
|
||||
$conf = array('config' => __DIR__ . DIRECTORY_SEPARATOR . 'openssl.cnf');
|
||||
$privkey = openssl_pkey_new($conf);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user