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:
Tobias Brunner
2021-02-12 11:45:44 +01:00
parent 2b6565c236
commit c4576a1f57
5 changed files with 25 additions and 24 deletions
+1 -1
View File
@@ -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;
}