mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-06-29 09:13:38 +08:00
bug fix
This commit is contained in:
@@ -2898,7 +2898,7 @@ CERT_PKEY *ssl_get_server_send_pkey_ex(SSL *s)
|
||||
if (i < 0)
|
||||
return NULL;
|
||||
|
||||
if (i == SSL_PKEY_SM2_SIGN) {
|
||||
if (i == SSL_PKEY_SM2) {
|
||||
i = SSL_PKEY_SM2_ENC;
|
||||
}
|
||||
|
||||
|
||||
@@ -690,14 +690,14 @@ int ossl_statem_server_construct_message(SSL *s)
|
||||
case TLS_ST_SW_CERT:
|
||||
#ifndef OPENSSL_NO_GMTLS
|
||||
if (SSL_IS_GMTLS(s))
|
||||
return tls_construct_server_certificate(s)
|
||||
return tls_construct_server_certificate(s);
|
||||
#endif
|
||||
return tls_construct_server_certificate(s);
|
||||
|
||||
case TLS_ST_SW_KEY_EXCH:
|
||||
#ifndef OPENSSL_NO_GMTLS
|
||||
if (SSL_IS_GMTLS(s))
|
||||
return gmtls_construct_server_key_exchange(s)
|
||||
return gmtls_construct_server_key_exchange(s);
|
||||
#endif
|
||||
return tls_construct_server_key_exchange(s);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user