summaryrefslogtreecommitdiffstats
path: root/ssl/d1_both.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2014-12-03 09:21:09 +0000
committerMatt Caswell <matt@openssl.org>2014-12-03 09:31:39 +0000
commit0b3c13092ca47b43c9af85ea88bac3e23a2feb6f (patch)
treed5880acfa702d5cc17339fa62f0094c5c10c9458 /ssl/d1_both.c
parentdfa2762bba9c372a488ec4bcb17e69ce45974768 (diff)
Remove "#if 0" code
Reviewed-by: Tim Hudson <tjh@openssl.org> (cherry picked from commit 4bb8eb9ce4f794fecf020a15b54e8505fced0edf)
Diffstat (limited to 'ssl/d1_both.c')
-rw-r--r--ssl/d1_both.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/ssl/d1_both.c b/ssl/d1_both.c
index c5957bd612..82e814ae6f 100644
--- a/ssl/d1_both.c
+++ b/ssl/d1_both.c
@@ -265,28 +265,6 @@ int dtls1_do_write(SSL *s, int type)
if(!dtls1_query_mtu(s))
return -1;
-#if 0
- mtu = s->d1->mtu;
-
- fprintf(stderr, "using MTU = %d\n", mtu);
-
- mtu -= (DTLS1_HM_HEADER_LENGTH + DTLS1_RT_HEADER_LENGTH);
-
- curr_mtu = mtu - BIO_wpending(SSL_get_wbio(s));
-
- if ( curr_mtu > 0)
- mtu = curr_mtu;
- else if ( ( ret = BIO_flush(SSL_get_wbio(s))) <= 0)
- return ret;
-
- if ( BIO_wpending(SSL_get_wbio(s)) + s->init_num >= mtu)
- {
- ret = BIO_flush(SSL_get_wbio(s));
- if ( ret <= 0)
- return ret;
- mtu = s->d1->mtu - (DTLS1_HM_HEADER_LENGTH + DTLS1_RT_HEADER_LENGTH);
- }
-#endif
OPENSSL_assert(s->d1->mtu >= dtls1_min_mtu(s)); /* should have something reasonable now */