mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-12 19:36:27 +08:00
Add PHP Extension for GmSSL
View http://gmssl.org/docs/php-api.html for more info.
This commit is contained in:
19
php/ext/openssl/tests/bug74022.phpt
Normal file
19
php/ext/openssl/tests/bug74022.phpt
Normal file
@@ -0,0 +1,19 @@
|
||||
--TEST--
|
||||
Bug #74022 PHP Fast CGI crashes when reading from a pfx file with valid password
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (!extension_loaded("openssl")) die("skip");
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
$pfx = dirname(__FILE__) . DIRECTORY_SEPARATOR . "bug74022.pfx";
|
||||
$cert_store = file_get_contents($pfx);
|
||||
|
||||
var_dump(openssl_pkcs12_read($cert_store, $cert_info, "csos"));
|
||||
var_dump(openssl_error_string());
|
||||
?>
|
||||
===DONE===
|
||||
--EXPECTF--
|
||||
bool(true)
|
||||
bool(false)
|
||||
===DONE===
|
||||
Reference in New Issue
Block a user