diff options
Diffstat (limited to 'Swiften/Crypto/OpenSSLCryptoProvider.cpp')
| -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 { | |||
| 108 | unsigned int len = SHA_DIGEST_LENGTH; | 108 | unsigned int len = SHA_DIGEST_LENGTH; |
| 109 | std::vector<unsigned char> result(len); | 109 | std::vector<unsigned char> result(len); |
| 110 | try { | 110 | try { |
| 111 | HMAC(EVP_sha1(), vecptr(key), boost::numeric_cast<int>(key.size()), vecptr(data), boost::numeric_cast<int>(data.size()), vecptr(result), &len); | 111 | HMAC(EVP_sha1(), vecptr(key), boost::numeric_cast<int>(key.size()), vecptr(data), data.size(), vecptr(result), &len); |
| 112 | } | 112 | } |
| 113 | catch (const boost::numeric::bad_numeric_cast&) { | 113 | catch (const boost::numeric::bad_numeric_cast&) { |
| 114 | assert(false); | 114 | assert(false); |
Swift