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:29:03 +0000 (20:29 +0000)
commitaf674d4e20a82c2a98767b837072d7093c70b1cf
treecbfb711fd1223e03240ca66b245901db7d66da0f
parenteadf70d2c885e3e4e943091eabfec1e73d4f3883
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>
ssl/dtls1.h
ssl/ssl_asn1.c