summaryrefslogtreecommitdiff
path: root/ext/openssl/tests/bug25614.phpt
blob: a43130708b12065faea0f66adcf11fdf8060188a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
openssl: get public key from generated private key
--SKIPIF--
<?php 
if (!extension_loaded("openssl")) die("skip"); 
if (!@openssl_pkey_new()) die("skip cannot create private key"); 
?>
--FILE--
<?php 
$priv = openssl_pkey_new();
$pub = openssl_pkey_get_public($priv);
?>
--EXPECTF--
Warning: openssl_pkey_get_public(): Don't know how to get public key from this private key %s