diff options
author | lloyd <[email protected]> | 2011-12-28 22:24:22 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2011-12-28 22:24:22 +0000 |
commit | b48a5b800a00e955cada6c418848c3bc460e44e7 (patch) | |
tree | ddd42617c399828a30c3983ef0fc3ed195112e14 /src | |
parent | 0862c2df098bd3d18431f019aca5c24a6ecc0f95 (diff) |
Fix for RC4 suites
Diffstat (limited to 'src')
-rw-r--r-- | src/tls/rec_wri.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tls/rec_wri.cpp b/src/tls/rec_wri.cpp index 0e8a6228c..ade2bd2d6 100644 --- a/src/tls/rec_wri.cpp +++ b/src/tls/rec_wri.cpp @@ -223,7 +223,8 @@ void Record_Writer::send_record(byte type, const byte input[], size_t length) mac->update(input, length); const size_t buf_size = round_up(iv_size + length + - mac->output_length() + 1, + mac->output_length() + + (block_size ? 1 : 0), block_size); if(buf_size >= MAX_CIPHERTEXT_SIZE) |