summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2017-07-16 16:38:02 -0400
committerAshod Nakashian <ashnakash@gmail.com>2017-07-17 02:55:42 +0200
commitd8a6996f1118b5697cc8b2842bf90c46e423a9ae (patch)
tree5ebed8bc625966bda120841287a4e20e55b6b9f0 /svl
parent40f181207574827827d2bf1b4ad72d46fc8ff1fb (diff)
svl: fix Android build where no NSS exists
Change-Id: I031b3efd4cf203cda0a69341e8c47b36cc7cfe37 Reviewed-on: https://gerrit.libreoffice.org/40013 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/crypto/cryptosign.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/svl/source/crypto/cryptosign.cxx b/svl/source/crypto/cryptosign.cxx
index d5304e5e2d2a..7d3096d637a3 100644
--- a/svl/source/crypto/cryptosign.cxx
+++ b/svl/source/crypto/cryptosign.cxx
@@ -80,7 +80,8 @@ void appendHex( sal_Int8 nInt, OStringBuffer& rBuffer )
rBuffer.append( pHexDigits[ nInt & 15 ] );
}
-#ifndef _WIN32
+#if HAVE_FEATURE_NSS && !defined(_WIN32)
+
char *PDFSigningPKCS7PasswordCallback(PK11SlotInfo * /*slot*/, PRBool /*retry*/, void *arg)
{
return PL_strdup(static_cast<char *>(arg));
@@ -694,7 +695,8 @@ NSSCMSMessage *CreateCMSMessage(const PRTime* time,
return result;
}
-#endif //!_WIN32
+#endif // HAVE_FEATURE_NSS && !_WIN32
+
} // Anonymous namespace
#ifdef _WIN32