diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-06-30 01:46:19 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-06-30 01:46:19 +0200 |
commit | 4bd66ed1e0cd58cb365d9ccf063e6d052877a410 (patch) | |
tree | d3e6f6e7f0dbd5670fadde0cf63a1e7ac08b3c3a | |
parent | cc380ed0eab31d572a643b155079dcdffd16cd0f (diff) | |
download | gnutls-4bd66ed1e0cd58cb365d9ccf063e6d052877a410.tar.gz |
no need to check for DTLS
-rw-r--r-- | lib/gnutls_dtls.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/gnutls_dtls.c b/lib/gnutls_dtls.c index d6d040530e..7a78f8fccf 100644 --- a/lib/gnutls_dtls.c +++ b/lib/gnutls_dtls.c @@ -613,10 +613,7 @@ int total = 0, ret, iv_size; { *blocksize = iv_size; - if (!IS_DTLS(session)) - total += MAX_PAD_SIZE; - else - total += iv_size; /* iv_size == block_size */ + total += iv_size; /* iv_size == block_size in DTLS */ /* We always pad with at least one byte; never 0. */ total++; |