diff options
author | Bodo Moeller <bodo@openssl.org> | 2014-10-15 04:05:42 +0200 |
---|---|---|
committer | Bodo Moeller <bodo@openssl.org> | 2014-10-15 04:05:42 +0200 |
commit | 6bfe55380abbf7528e04e59f18921bd6c896af1c (patch) | |
tree | 1398d8e3eba72f8d5e50bd0eef8ec030422a15c0 /ssl/s23_clnt.c | |
parent | 4e05aedbcab7f7f83a887e952ebdcc5d4f2291e4 (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 2b93c639dd..d4e43c3568 100644 --- a/ssl/s23_clnt.c +++ b/ssl/s23_clnt.c @@ -736,6 +736,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 */ |