]> git.ipfire.org Git - thirdparty/openssl.git/commit - ssl/statem/statem_clnt.c
Allow different protocol version when trying to reuse a session
authorFedor Indutny <fedor@indutny.com>
Fri, 11 Mar 2016 14:44:01 +0000 (17:44 +0300)
committerKurt Roeckx <kurt@roeckx.be>
Sun, 27 Mar 2016 21:58:50 +0000 (23:58 +0200)
commitccae4a1582efcad311d095a8e6832b2b67d5ed05
treea07c60e09166c40dcd6142f4c37888cb570f6ef1
parentce84456ddf4e57c18a84858755b8b90c183a270e
Allow different protocol version when trying to reuse a session

We now send the highest supported version by the client, even if the session
uses an older version.

This fixes 2 problems:
- When you try to reuse a session but the other side doesn't reuse it and
  uses a different protocol version the connection will fail.
- When you're trying to reuse a session with an old version you might be
  stuck trying to reuse the old version while both sides support a newer
  version

Signed-off-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
GH: #852, MR: #2452
include/openssl/ssl.h
ssl/methods.c
ssl/ssl_err.c
ssl/ssl_locl.h
ssl/ssl_sess.c
ssl/statem/statem_clnt.c
ssl/statem/statem_lib.c