projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfd298b
)
Remove versions test from dtls1_buffer_message
author
Dr. Stephen Henson
<steve@openssl.org>
Tue, 26 Mar 2013 14:46:18 +0000
(14:46 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Tue, 26 Mar 2013 15:16:41 +0000
(15:16 +0000)
Since this is always called from DTLS code it is safe to assume the header
length should be the DTLS value. This avoids the need to check the version
number and should work with any version of DTLS (not just 1.0).
ssl/d1_both.c
patch
|
blob
|
history
diff --git
a/ssl/d1_both.c
b/ssl/d1_both.c
index ee945cbd3a9d70dc71d9ac78ed92c01acb8324ab..262299b1541208fa872774250cf2d58d480a8da3 100644
(file)
--- a/
ssl/d1_both.c
+++ b/
ssl/d1_both.c
@@
-1037,7
+1037,7
@@
dtls1_buffer_message(SSL *s, int is_ccs)
if ( is_ccs)
{
OPENSSL_assert(s->d1->w_msg_hdr.msg_len +
-
((s->version==DTLS1_VERSION)?DTLS1_CCS_HEADER_LENGTH:3)
== (unsigned int)s->init_num);
+
DTLS1_CCS_HEADER_LENGTH
== (unsigned int)s->init_num);
}
else
{