mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-13 03:46:26 +08:00
Add PHP Extension for GmSSL
View http://gmssl.org/docs/php-api.html for more info.
This commit is contained in:
13
php/ext/openssl/tests/openssl_encrypt_crash.phpt
Normal file
13
php/ext/openssl/tests/openssl_encrypt_crash.phpt
Normal file
@@ -0,0 +1,13 @@
|
||||
--TEST--
|
||||
openssl_encrypt() crash with old OpenSSL
|
||||
--SKIPIF--
|
||||
<?php if (!extension_loaded("openssl")) print "skip"; ?>
|
||||
--FILE--
|
||||
<?php
|
||||
openssl_encrypt('', 'AES-128-CBC', 'foo');
|
||||
var_dump("done");
|
||||
?>
|
||||
--EXPECTF--
|
||||
|
||||
Warning: openssl_encrypt(): Using an empty Initialization Vector (iv) is potentially insecure and not recommended in %s on line %d
|
||||
string(4) "done"
|
||||
Reference in New Issue
Block a user