summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-11-10 14:30:33 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-11-10 16:16:11 +0000
commit17796bfb2593ff988f2ed68f6dc4a36f705f148c (patch)
tree05d7ebd74559ff5034dcb7ac7eeb065a28d61591 /oox
parent735f3a94b92ac93d11f66c3a86edc42e1915b337 (diff)
coverity#1130169 Unchecked return value
Change-Id: I62ed42412a0cafa33ddafe536723f5e336c92a7a
Diffstat (limited to 'oox')
-rw-r--r--oox/source/crypto/CryptTools.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/oox/source/crypto/CryptTools.cxx b/oox/source/crypto/CryptTools.cxx
index 4e0d189b735f..f5b0769adb19 100644
--- a/oox/source/crypto/CryptTools.cxx
+++ b/oox/source/crypto/CryptTools.cxx
@@ -137,11 +137,11 @@ sal_uInt32 Decrypt::update(vector<sal_uInt8>& output, vector<sal_uInt8>& input,
sal_uInt32 actualInputLength = inputLength == 0 || inputLength > input.size() ? input.size() : inputLength;
#if USE_TLS_OPENSSL
- EVP_DecryptUpdate( &mContext, &output[0], &outputLength, &input[0], actualInputLength );
+ (void)EVP_DecryptUpdate( &mContext, &output[0], &outputLength, &input[0], actualInputLength );
#endif // USE_TLS_OPENSSL
#if USE_TLS_NSS
- PK11_CipherOp( mContext, &output[0], &outputLength, actualInputLength, &input[0], actualInputLength );
+ (void)PK11_CipherOp( mContext, &output[0], &outputLength, actualInputLength, &input[0], actualInputLength );
#endif // USE_TLS_NSS
return static_cast<sal_uInt32>(outputLength);
@@ -185,11 +185,11 @@ sal_uInt32 Encrypt::update(vector<sal_uInt8>& output, vector<sal_uInt8>& input,
sal_uInt32 actualInputLength = inputLength == 0 || inputLength > input.size() ? input.size() : inputLength;
#if USE_TLS_OPENSSL
- EVP_EncryptUpdate( &mContext, &output[0], &outputLength, &input[0], actualInputLength );
+ (void)EVP_EncryptUpdate( &mContext, &output[0], &outputLength, &input[0], actualInputLength );
#endif // USE_TLS_OPENSSL
#if USE_TLS_NSS
- PK11_CipherOp( mContext, &output[0], &outputLength, actualInputLength, &input[0], actualInputLength );
+ (void)PK11_CipherOp( mContext, &output[0], &outputLength, actualInputLength, &input[0], actualInputLength );
#endif // USE_TLS_NSS
return static_cast<sal_uInt32>(outputLength);