diff options
author | jsing <> | 2015-09-10 17:57:50 +0000 |
---|---|---|
committer | jsing <> | 2015-09-10 17:57:50 +0000 |
commit | c4c220a34fb8ef8921b6629e0de8a0761a7d8a66 (patch) | |
tree | b6e132390b9936d3bc45c6b7e5f7567e5fabce5b /src/lib/libssl/d1_pkt.c | |
parent | 3de7aa268622f5ee3cfe2831d0da81edc27f1d24 (diff) | |
download | openbsd-c4c220a34fb8ef8921b6629e0de8a0761a7d8a66.tar.gz openbsd-c4c220a34fb8ef8921b6629e0de8a0761a7d8a66.tar.bz2 openbsd-c4c220a34fb8ef8921b6629e0de8a0761a7d8a66.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_pkt.c')
-rw-r--r-- | src/lib/libssl/d1_pkt.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/lib/libssl/d1_pkt.c b/src/lib/libssl/d1_pkt.c index c3574b43bd..ca716a2222 100644 --- a/src/lib/libssl/d1_pkt.c +++ b/src/lib/libssl/d1_pkt.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: d1_pkt.c,v 1.46 2015/07/19 01:07:40 doug Exp $ */ | 1 | /* $OpenBSD: d1_pkt.c,v 1.47 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. |
@@ -971,9 +971,6 @@ start: | |||
971 | 971 | ||
972 | dtls1_get_ccs_header(rr->data, &ccs_hdr); | 972 | dtls1_get_ccs_header(rr->data, &ccs_hdr); |
973 | 973 | ||
974 | if (s->version == DTLS1_BAD_VER) | ||
975 | ccs_hdr_len = 3; | ||
976 | |||
977 | /* 'Change Cipher Spec' is just a single byte, so we know | 974 | /* 'Change Cipher Spec' is just a single byte, so we know |
978 | * exactly what the record payload has to look like */ | 975 | * exactly what the record payload has to look like */ |
979 | /* XDTLS: check that epoch is consistent */ | 976 | /* XDTLS: check that epoch is consistent */ |
@@ -1006,10 +1003,6 @@ start: | |||
1006 | /* do this whenever CCS is processed */ | 1003 | /* do this whenever CCS is processed */ |
1007 | dtls1_reset_seq_numbers(s, SSL3_CC_READ); | 1004 | dtls1_reset_seq_numbers(s, SSL3_CC_READ); |
1008 | 1005 | ||
1009 | if (s->version == DTLS1_BAD_VER) | ||
1010 | s->d1->handshake_read_seq++; | ||
1011 | |||
1012 | |||
1013 | goto start; | 1006 | goto start; |
1014 | } | 1007 | } |
1015 | 1008 | ||