tls: Allow setting both minimum and maximum TLS versions
This allows to increase the initial minimum version and also prevents sending a list of versions during retries when 1.3 was already negotiated.
This commit is contained in:
@@ -447,7 +447,7 @@ tls_socket_t *tls_socket_create(bool is_server, identification_t *server,
|
||||
free(this);
|
||||
return NULL;
|
||||
}
|
||||
this->tls->set_version(this->tls, max_version);
|
||||
this->tls->set_version(this->tls, TLS_1_0, max_version);
|
||||
|
||||
return &this->public;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user