summaryrefslogtreecommitdiffstats
path: root/ssl/dtls1.h
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2015-02-27 16:52:07 +0000
committerMatt Caswell <matt@openssl.org>2015-02-27 20:32:49 +0000
commit5c921f14cb08044e40f03440c39c70d9fb321e92 (patch)
tree5d3ad8c619df9fa4711f54082975c238363fb354 /ssl/dtls1.h
parentd58a852fbd3c7ae2d71949c090a474235b69d693 (diff)
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 Conflicts: ssl/dtls1.h
Diffstat (limited to 'ssl/dtls1.h')
-rw-r--r--ssl/dtls1.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ssl/dtls1.h b/ssl/dtls1.h
index 442167a74c..8deb299a7c 100644
--- a/ssl/dtls1.h
+++ b/ssl/dtls1.h
@@ -85,6 +85,7 @@ extern "C" {
# define DTLS1_VERSION 0xFEFF
# define DTLS_MAX_VERSION DTLS1_VERSION
+# define DTLS1_VERSION_MAJOR 0xFE
# define DTLS1_BAD_VER 0x0100