Add extension gmssl support (#544)

* Add extension gmssl support

* cs-fix

* Add framework for gmssl
This commit is contained in:
Jerry Ma
2024-09-20 12:32:31 +08:00
committed by GitHub
parent e35836943e
commit 29efc2c5a5
10 changed files with 156 additions and 2 deletions

View File

@@ -0,0 +1,8 @@
<?php
declare(strict_types=1);
assert(function_exists('gmssl_rand_bytes'));
assert(function_exists('gmssl_sm3'));
assert(bin2hex(gmssl_sm3('123456')) === '207cf410532f92a47dee245ce9b11ff71f578ebd763eb3bbea44ebd043d018fb');

View File

@@ -19,8 +19,8 @@ $upx = true;
// If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`).
$extensions = match (PHP_OS_FAMILY) {
'Linux', 'Darwin' => 'redis,igbinary,msgpack',
'Windows' => 'redis,igbinary,msgpack',
'Linux', 'Darwin' => 'gmssl',
'Windows' => 'gmssl',
};
// If you want to test lib-suggests feature with extension, add them below (comma separated, example `libwebp,libavif`).