diff options
Diffstat (limited to 'Swiften')
-rw-r--r-- | Swiften/Crypto/OpenSSLCryptoProvider.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/Crypto/OpenSSLCryptoProvider.cpp b/Swiften/Crypto/OpenSSLCryptoProvider.cpp index 73f46a6..5245bd8 100644 --- a/Swiften/Crypto/OpenSSLCryptoProvider.cpp +++ b/Swiften/Crypto/OpenSSLCryptoProvider.cpp @@ -108,7 +108,7 @@ namespace { unsigned int len = SHA_DIGEST_LENGTH; std::vector<unsigned char> result(len); try { - HMAC(EVP_sha1(), vecptr(key), boost::numeric_cast<int>(key.size()), vecptr(data), boost::numeric_cast<int>(data.size()), vecptr(result), &len); + HMAC(EVP_sha1(), vecptr(key), boost::numeric_cast<int>(key.size()), vecptr(data), data.size(), vecptr(result), &len); } catch (const boost::numeric::bad_numeric_cast&) { assert(false); |