aboutsummaryrefslogtreecommitdiffstats
path: root/src/kdf
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-11-29 15:31:18 +0000
committerlloyd <[email protected]>2010-11-29 15:31:18 +0000
commit16ca4e119d5beefcfaf92a3ce05b063997a782ce (patch)
tree03c4cbeb3f6c602dce85d1e63126d2644e694876 /src/kdf
parent04431bf49ddb336fc53715c2cade3814f5296172 (diff)
Cast to avoid VC warning
Diffstat (limited to 'src/kdf')
-rw-r--r--src/kdf/ssl_prf/prf_ssl3.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kdf/ssl_prf/prf_ssl3.cpp b/src/kdf/ssl_prf/prf_ssl3.cpp
index 4f7325bde..72cf023e2 100644
--- a/src/kdf/ssl_prf/prf_ssl3.cpp
+++ b/src/kdf/ssl_prf/prf_ssl3.cpp
@@ -30,7 +30,7 @@ OctetString next_hash(size_t where, size_t want,
const byte ASCII_A_CHAR = 0x41;
for(size_t j = 0; j != where + 1; j++)
- sha1.update(ASCII_A_CHAR + where);
+ sha1.update(static_cast<byte>(ASCII_A_CHAR + where));
sha1.update(secret, secret_len);
sha1.update(seed, seed_len);
SecureVector<byte> sha1_hash = sha1.final();