diff options
author | Kurt Roeckx <kurt@roeckx.be> | 2016-01-02 20:06:07 +0100 |
---|---|---|
committer | Kurt Roeckx <kurt@roeckx.be> | 2016-01-10 13:04:55 +0100 |
commit | 869e978c9856c3a1faf0c289bfef3048b2af867c (patch) | |
tree | 012be869bd47bd8e20c9936e965572c99a311a8f /ssl/statem | |
parent | ca0004e5610df4333d06908c5c5788f93a971ffa (diff) |
Allow disabling the min and max version
Reviewed-by: Viktor Dukhovni <openssl-users@dukhovni.org>
Diffstat (limited to 'ssl/statem')
-rw-r--r-- | ssl/statem/statem_lib.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ssl/statem/statem_lib.c b/ssl/statem/statem_lib.c index bf59eb3925..7142128fd7 100644 --- a/ssl/statem/statem_lib.c +++ b/ssl/statem/statem_lib.c @@ -834,6 +834,11 @@ int ssl_check_version_downgrade(SSL *s) */ int ssl_set_version_bound(int method_version, int version, int *bound) { + if (version == 0) { + *bound = version; + return 1; + } + /*- * Restrict TLS methods to TLS protocol versions. * Restrict DTLS methods to DTLS protocol versions. |