summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2018-08-27 15:24:57 +0300
committerTor Lillqvist <tml@iki.fi>2018-08-27 22:29:49 +0300
commit823a328a04167935be38203ae05181ec5eb9b386 (patch)
tree72edae9e75030091e809df16291d83d1b5ae3111 /oox
parent57ba456786614348e309ad1860219ace2f2a2e0b (diff)
Fix build in the !(USE_TLS_OPENSSL + USE_TLS_NSS > 0) case
Change-Id: I746f0f322082e81cc47322989634322a0659aa73
Diffstat (limited to 'oox')
-rw-r--r--oox/source/crypto/CryptTools.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/oox/source/crypto/CryptTools.cxx b/oox/source/crypto/CryptTools.cxx
index 9ffc6eabfe47..ffe548d5912e 100644
--- a/oox/source/crypto/CryptTools.cxx
+++ b/oox/source/crypto/CryptTools.cxx
@@ -456,14 +456,16 @@ bool CryptoHash::update(std::vector<sal_uInt8>& rInput, sal_uInt32 nInputLength)
#if USE_TLS_OPENSSL + USE_TLS_NSS > 0
sal_uInt32 nActualInputLength = (nInputLength == 0 || nInputLength > rInput.size()) ? rInput.size() : nInputLength;
#else
- (void)input;
- (void)inputLength;
+ (void)rInput;
+ (void)nInputLength;
#endif
#if USE_TLS_OPENSSL
return HMAC_Update(mpImpl->mpHmacContext.get(), rInput.data(), nActualInputLength) != 0;
#elif USE_TLS_NSS
return PK11_DigestOp(mpImpl->mContext, rInput.data(), nActualInputLength) == SECSuccess;
+#else
+ return false; // ???
#endif
}