Add support for minimum and maximum protocol version supported by a cipher
Reviewed-by: Viktor Dukhovni <viktor@openssl.org> MR: #1595
This commit is contained in:
@@ -1117,13 +1117,13 @@ int ssl_get_client_min_max_version(const SSL *s, int *min_version, int *max_vers
|
||||
*/
|
||||
int ssl_set_client_hello_version(SSL *s)
|
||||
{
|
||||
int min, max, ret;
|
||||
int ver_min, ver_max, ret;
|
||||
|
||||
ret = ssl_get_client_min_max_version(s, &min, &max);
|
||||
ret = ssl_get_client_min_max_version(s, &ver_min, &ver_max);
|
||||
|
||||
if (ret != 0)
|
||||
return ret;
|
||||
|
||||
s->client_version = s->version = max;
|
||||
s->client_version = s->version = ver_max;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user