mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-27 02:36:29 +08:00
Add PHP Extension for GmSSL
View http://gmssl.org/docs/php-api.html for more info.
This commit is contained in:
14
php/ext/openssl/tests/bug25614.phpt
Normal file
14
php/ext/openssl/tests/bug25614.phpt
Normal file
@@ -0,0 +1,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
|
||||
Reference in New Issue
Block a user