summaryrefslogtreecommitdiff
path: root/src/lib/libssl/d1_lib.c
diff options
context:
space:
mode:
authorjsing <>2015-09-10 17:57:50 +0000
committerjsing <>2015-09-10 17:57:50 +0000
commit6a01e44e5bb9917370be7048957c7d999d847bb6 (patch)
treeb6e132390b9936d3bc45c6b7e5f7567e5fabce5b /src/lib/libssl/d1_lib.c
parentd65ad2c1f2794d3d6f1cd74e64b738ee9904a95b (diff)
downloadopenbsd-6a01e44e5bb9917370be7048957c7d999d847bb6.tar.gz
openbsd-6a01e44e5bb9917370be7048957c7d999d847bb6.tar.bz2
openbsd-6a01e44e5bb9917370be7048957c7d999d847bb6.zip
Remove support for DTLS_BAD_VER. We do not support non-standard and
incomplete implementations just so that we can interoperate with products from vendors who have not bothered to fix things in the last ~10 years. ok bcook@ miod@
Diffstat (limited to 'src/lib/libssl/d1_lib.c')
-rw-r--r--src/lib/libssl/d1_lib.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/libssl/d1_lib.c b/src/lib/libssl/d1_lib.c
index e7eca4a8cd..708f3d7206 100644
--- a/src/lib/libssl/d1_lib.c
+++ b/src/lib/libssl/d1_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: d1_lib.c,v 1.30 2015/09/10 15:56:26 jsing Exp $ */ 1/* $OpenBSD: d1_lib.c,v 1.31 2015/09/10 17:57:50 jsing Exp $ */
2/* 2/*
3 * DTLS implementation written by Nagendra Modadugu 3 * DTLS implementation written by Nagendra Modadugu
4 * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. 4 * (nagendra@cs.stanford.edu) for the OpenSSL project 2005.
@@ -246,10 +246,8 @@ dtls1_clear(SSL *s)
246 } 246 }
247 247
248 ssl3_clear(s); 248 ssl3_clear(s);
249 if (s->options & SSL_OP_CISCO_ANYCONNECT) 249
250 s->version = DTLS1_BAD_VER; 250 s->version = DTLS1_VERSION;
251 else
252 s->version = DTLS1_VERSION;
253} 251}
254 252
255long 253long