diff options
author | Bodo Moeller <bodo@openssl.org> | 2014-10-15 04:04:55 +0200 |
---|---|---|
committer | Bodo Moeller <bodo@openssl.org> | 2014-10-15 04:04:55 +0200 |
commit | a46c705214004358c8e7b1b5c3eb1c45615d3b21 (patch) | |
tree | 7af6623db9e229b55dedf2c7f7d809891e64664f /ssl/s23_clnt.c | |
parent | dc7bca8bccbfe31d28a2be5e0ae8f220de8b5109 (diff) |
Support TLS_FALLBACK_SCSV.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'ssl/s23_clnt.c')
-rw-r--r-- | ssl/s23_clnt.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ssl/s23_clnt.c b/ssl/s23_clnt.c index 5177f060c2..ca6dcd343c 100644 --- a/ssl/s23_clnt.c +++ b/ssl/s23_clnt.c @@ -748,6 +748,9 @@ static int ssl23_get_server_hello(SSL *s) goto err; } + /* ensure that TLS_MAX_VERSION is up-to-date */ + OPENSSL_assert(s->version <= TLS_MAX_VERSION); + if (p[0] == SSL3_RT_ALERT && p[5] != SSL3_AL_WARNING) { /* fatal alert */ |