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:
Kurt Roeckx
2016-02-07 20:17:07 +01:00
parent 068c358ac3
commit 3eb2aff401
8 changed files with 504 additions and 318 deletions

View File

@@ -3060,7 +3060,7 @@ SSL_METHOD *ssl_bad_method(int ver)
return (NULL);
}
const char *version_to_string(int version)
const char *ssl_protocol_to_string(int version)
{
if (version == TLS1_2_VERSION)
return "TLSv1.2";
@@ -3082,7 +3082,7 @@ const char *version_to_string(int version)
const char *SSL_get_version(const SSL *s)
{
return version_to_string(s->version);
return ssl_protocol_to_string(s->version);
}
SSL *SSL_dup(SSL *s)