Fix d2i_SSL_SESSION for DTLS1_BAD_VER
authorMatt Caswell <matt@openssl.org>
Fri, 27 Feb 2015 16:52:07 +0000 (16:52 +0000)
committerMatt Caswell <matt@openssl.org>
Fri, 27 Feb 2015 20:31:28 +0000 (20:31 +0000)
commit6e20f556465f082dd4fdbd096a488e37528ddebf
treeac6ce604ca021f871d519c609e099e585478ac28
parent87cd297d149495eca0735ec5653c19acaf69286e
Fix d2i_SSL_SESSION for DTLS1_BAD_VER

Some Cisco appliances use a pre-standard version number for DTLS. We support
this as DTLS1_BAD_VER within the code.

This change fixes d2i_SSL_SESSION for that DTLS version.

Based on an original patch by David Woodhouse <dwmw2@infradead.org>

RT#3704

Reviewed-by: Tim Hudson <tjh@openssl.org>
Conflicts:
ssl/ssl_asn1.c
ssl/dtls1.h
ssl/ssl_asn1.c