aboutsummaryrefslogtreecommitdiffstats
path: root/src/pgp_s2k.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pgp_s2k.cpp')
-rw-r--r--src/pgp_s2k.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pgp_s2k.cpp b/src/pgp_s2k.cpp
index b8a27cc6e..8da044a1c 100644
--- a/src/pgp_s2k.cpp
+++ b/src/pgp_s2k.cpp
@@ -44,7 +44,7 @@ OctetString OpenPGP_S2K::derive(u32bit key_len, const std::string& passphrase,
{
hash->update(salt_buf, salt_size);
left -= salt_size;
- hash->update((const byte*)passphrase.data(), left);
+ hash->update(reinterpret_cast<const byte*>(passphrase.data()), left);
}
hash_buf = hash->final();