mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-12 03:16:25 +08:00
Update with a new version number
This update brings the PHP binding of GmSSL through the PHP OpenSSL extension.
This commit is contained in:
@@ -99,8 +99,8 @@ int EVP_PKEY_encrypt_old(unsigned char *out, const unsigned char *in,
|
||||
# ifdef SM2_DEBUG
|
||||
fprintf(stderr, "[SM2_DEBUG] %s->EVP_PKEY_CTX_set_ec_scheme\n", __FUNCTION__);
|
||||
# endif
|
||||
if (EVP_PKEY_CTX_set_ec_scheme(pkctx, NID_sm_scheme) <= 0
|
||||
|| EVP_PKEY_CTX_set_ec_encrypt_param(pkctx, NID_sm3) <= 0) {
|
||||
if (EVP_PKEY_CTX_set_ec_scheme(ctx, NID_sm_scheme) <= 0
|
||||
|| EVP_PKEY_CTX_set_ec_encrypt_param(ctx, NID_sm3) <= 0) {
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user