aboutsummaryrefslogtreecommitdiffstats
path: root/src/ssl/tls_handshake_hash.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-10-15 16:57:19 +0000
committerlloyd <[email protected]>2010-10-15 16:57:19 +0000
commit4f939c4f33798e9aa300ea876ed3df28bc2739c3 (patch)
treebcf40696ea6d61e4dfab8cc85b70d9119aa0396a /src/ssl/tls_handshake_hash.cpp
parent76de66140226728fd22f1dfda976e7214d79a62c (diff)
Last u32bit->size_t for ssl
Diffstat (limited to 'src/ssl/tls_handshake_hash.cpp')
-rw-r--r--src/ssl/tls_handshake_hash.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/ssl/tls_handshake_hash.cpp b/src/ssl/tls_handshake_hash.cpp
index 93442cad1..7c1e2e385 100644
--- a/src/ssl/tls_handshake_hash.cpp
+++ b/src/ssl/tls_handshake_hash.cpp
@@ -45,15 +45,19 @@ SecureVector<byte> HandshakeHash::final_ssl3(const MemoryRegion<byte>& secret)
md5.update(secret);
sha1.update(secret);
- for(u32bit j = 0; j != 48; j++) md5.update(PAD_INNER);
- for(u32bit j = 0; j != 40; j++) sha1.update(PAD_INNER);
+ for(size_t i = 0; i != 48; ++i)
+ md5.update(PAD_INNER);
+ for(size_t i = 0; i != 40; ++i)
+ sha1.update(PAD_INNER);
SecureVector<byte> inner_md5 = md5.final(), inner_sha1 = sha1.final();
md5.update(secret);
sha1.update(secret);
- for(u32bit j = 0; j != 48; j++) md5.update(PAD_OUTER);
- for(u32bit j = 0; j != 40; j++) sha1.update(PAD_OUTER);
+ for(size_t i = 0; i != 48; ++i)
+ md5.update(PAD_OUTER);
+ for(size_t i = 0; i != 40; ++i)
+ sha1.update(PAD_OUTER);
md5.update(inner_md5);
sha1.update(inner_sha1);