Skip to content

Commit 95c0dba

Browse files
committed
1 parent 5c315bc commit 95c0dba

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

ssl/ssl_lib.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2585,9 +2585,16 @@ EVP_PKEY *ssl_get_sign_pkey(SSL *s, const SSL_CIPHER *cipher,
25852585
idx = SSL_PKEY_RSA_SIGN;
25862586
else if (c->pkeys[SSL_PKEY_RSA_ENC].privatekey != NULL)
25872587
idx = SSL_PKEY_RSA_ENC;
2588-
} else if ((alg_a & SSL_aECDSA) &&
2588+
}
2589+
# ifndef NO_GMSSL
2590+
else if ((alg_a & SSL_aSM2) &&
25892591
(c->pkeys[SSL_PKEY_ECC].privatekey != NULL))
25902592
idx = SSL_PKEY_ECC;
2593+
# endif
2594+
else if ((alg_a & SSL_aECDSA) &&
2595+
(c->pkeys[SSL_PKEY_ECC].privatekey != NULL))
2596+
idx = SSL_PKEY_ECC;
2597+
25912598
if (idx == -1) {
25922599
SSLerr(SSL_F_SSL_GET_SIGN_PKEY, ERR_R_INTERNAL_ERROR);
25932600
return (NULL);

0 commit comments

Comments
 (0)