summaryrefslogtreecommitdiff
path: root/xmlsecurity/CppunitTest_xmlsecurity_pdfsigning.mk
diff options
context:
space:
mode:
authorMichael Stahl <michael.stahl@allotropia.de>2024-12-17 13:41:33 +0100
committerMichael Stahl <michael.stahl@allotropia.de>2024-12-17 14:59:13 +0100
commitfae1eb775d44438a2193ba1ec07261ea0a94fef4 (patch)
tree46da49dc08f760d2d795d38aba8a6cb7c7e7c7b6 /xmlsecurity/CppunitTest_xmlsecurity_pdfsigning.mk
parentb88a3f1f16f1eba6f5aabeedc8b4d5df8d54958a (diff)
xmlsecurity: fix tests to run with system NSS on Fedora 40
testDropMacroTemplateSignature fails printing this: warn:xmlsecurity.xmlsec:3511616:3511616:xmlsecurity/source/xmlsec/errorcallback.cxx:53: signatures.c:599: xmlSecNssSignatureSetKey() 'rsa-sha1' 'VFY_CreateContext' 4 'NSS error: -8011' because policy sets NSS_RSA_MIN_KEY_SIZE to 2048. testPDFGood fails printing this: warn:svl.crypto:3587940:3587940:svl/source/crypto/cryptosign.cxx:1941: ValidateSignature: message is not signed warn:xmlsecurity.helper:3587940:3587940:xmlsecurity/source/helper/pdfsignaturehelper.cxx:482: failed to determine digest match because enabling SEC_OID_SHA1 for NSS_USE_ALG_IN_ANY_SIGNATURE doesn't enable it for SMIME signatures, so smime_allowed_by_policy() fails - obviously one has to use NSS_USE_ALG_IN_SIGNATURE to enable it in any signature. Change-Id: I59ffaf0994eee6b51362fd3296f61465d0fc7903 (cherry picked from commit a7b7b00b78426bff8607c77106ea62dd213f0821) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178663 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'xmlsecurity/CppunitTest_xmlsecurity_pdfsigning.mk')
-rw-r--r--xmlsecurity/CppunitTest_xmlsecurity_pdfsigning.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmlsecurity/CppunitTest_xmlsecurity_pdfsigning.mk b/xmlsecurity/CppunitTest_xmlsecurity_pdfsigning.mk
index faf6944a0773..02544bc54c92 100644
--- a/xmlsecurity/CppunitTest_xmlsecurity_pdfsigning.mk
+++ b/xmlsecurity/CppunitTest_xmlsecurity_pdfsigning.mk
@@ -39,6 +39,7 @@ ifneq ($(OS),WNT)
ifneq (,$(ENABLE_NSS))
$(eval $(call gb_CppunitTest_use_externals,xmlsecurity_pdfsigning,\
nssutil3 \
+ nss3 \
))
endif
endif