diff options
author | 2015-07-17 07:04:40 +0000 | |
---|---|---|
committer | 2015-07-17 07:04:40 +0000 | |
commit | 4314af3e2aeeba04584bc9d3db28b8832a21028b (patch) | |
tree | 8ddce1b1326e4a006ba05ab304b9f030690c404e /lib/libssl/d1_enc.c | |
parent | Initialize client fd to -1 as well, from Bobby Powers. (diff) | |
download | wireguard-openbsd-4314af3e2aeeba04584bc9d3db28b8832a21028b.tar.xz wireguard-openbsd-4314af3e2aeeba04584bc9d3db28b8832a21028b.zip |
Remove workaround for TLS padding bug from SSLeay days.
OpenSSL doesn't remember which clients were impacted and the
functionality has been broken in their stable releases for 2 years.
Based on OpenSSL commit a8e4ac6a2fe67c19672ecf0c6aeafa15801ce3a5.
ok jsing@
Diffstat (limited to 'lib/libssl/d1_enc.c')
-rw-r--r-- | lib/libssl/d1_enc.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/libssl/d1_enc.c b/lib/libssl/d1_enc.c index 7eac48785e4..c58e109ae57 100644 --- a/lib/libssl/d1_enc.c +++ b/lib/libssl/d1_enc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: d1_enc.c,v 1.9 2014/12/14 15:30:50 jsing Exp $ */ +/* $OpenBSD: d1_enc.c,v 1.10 2015/07/17 07:04:40 doug Exp $ */ /* * DTLS implementation written by Nagendra Modadugu * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. @@ -187,10 +187,6 @@ dtls1_enc(SSL *s, int send) /* we need to add 'i' padding bytes of value j */ j = i - 1; - if (s->options & SSL_OP_TLS_BLOCK_PADDING_BUG) { - if (s->s3->flags & TLS1_FLAGS_TLS_PADDING_BUG) - j++; - } for (k = (int)l; k < (int)(l + i); k++) rec->input[k] = j; l += i; |