mirror of
https://github.com/openssl/openssl.git
synced 2024-11-23 18:13:39 +08:00
Adjust error reason for ssl_get_min_max_version() failure
Use SSL_R_NO_PROTOCOLS_AVAILABLE instead of ERR_R_INTERNAL_ERROR, to match what the BoringSSL tests expect for this case. Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/13251)
This commit is contained in:
parent
a92c9648cd
commit
467dc32524
@ -101,8 +101,8 @@ int tls_setup_handshake(SSL *s)
|
||||
memset(s->ext.extflags, 0, sizeof(s->ext.extflags));
|
||||
|
||||
if (ssl_get_min_max_version(s, &ver_min, &ver_max, NULL) != 0) {
|
||||
SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_F_TLS_SETUP_HANDSHAKE,
|
||||
ERR_R_INTERNAL_ERROR);
|
||||
SSLfatal(s, SSL_AD_PROTOCOL_VERSION, SSL_F_TLS_SETUP_HANDSHAKE,
|
||||
SSL_R_NO_PROTOCOLS_AVAILABLE);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user