diff options
author | jan Iversen <jani@libreoffice.org> | 2017-06-09 12:59:19 +0200 |
---|---|---|
committer | jan iversen <jani@libreoffice.org> | 2017-06-11 11:23:28 +0200 |
commit | 2a48fd3fbb649218f66a58e70ad904411883c63d (patch) | |
tree | 7deab6d8cc914445e8848a6ecd23bf43af380ddd /comphelper | |
parent | 2a6894e05cb8b35376c47ad6301f4dc8deb56fc0 (diff) |
allow build without tls and ssl
support for using
--disable-openssl AND --without-tls
(needed if you want to avoid including crypto code).
Change-Id: I77650e9db679ddf1690560eda069d8645acacfc4
Reviewed-on: https://gerrit.libreoffice.org/38604
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@libreoffice.org>
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/misc/hash.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/comphelper/source/misc/hash.cxx b/comphelper/source/misc/hash.cxx index 5e250f1ed0d3..8da77a792e6a 100644 --- a/comphelper/source/misc/hash.cxx +++ b/comphelper/source/misc/hash.cxx @@ -105,6 +105,9 @@ void Hash::update(const unsigned char* pInput, size_t length) HASH_Update(mpImpl->mpContext, pInput, length); #elif USE_TLS_OPENSSL EVP_DigestUpdate(mpImpl->mpContext, pInput, length); +#else + (void)pInput; + (void)length; #endif } @@ -116,6 +119,8 @@ std::vector<unsigned char> Hash::finalize() HASH_End(mpImpl->mpContext, hash.data(), &digestWrittenLength, getLength()); #elif USE_TLS_OPENSSL EVP_DigestFinal_ex(mpImpl->mpContext, hash.data(), &digestWrittenLength); +#else + (void)digestWrittenLength; #endif return hash; |