Skip to content

Commit

Permalink
fix tass android build (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyjseagull authored Jan 19, 2024
1 parent 00917ac commit 5144cc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ssl/s3_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -5090,9 +5090,9 @@ int ssl_derive_SM2(SSL *s, EVP_PKEY *privkey, EVP_PKEY *pubkey, int gensecret)

local_e_sm4 = ENGINE_get_cipher_engine(NID_sm4_cbc); //如果加载了SM4引擎,则协商密文的premasterkey;如果没有加载则协商明文的premasterkey
if(local_e_sm4)
pctx->app_data = 1;
pctx->app_data = (void*)1;
else
pctx->app_data = 0;
pctx->app_data = (void*)0;

if(EVP_PKEY_derive(pctx, pms, &pmslen) <= 0) {
SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_F_SSL_DERIVE_SM2,
Expand Down

0 comments on commit 5144cc4

Please sign in to comment.