Files
loongoffice/external/libxmlsec/xmlsec1-nssdisablecallbacks.patch.1
Miklos Vajna b87c4d8a75 Upgrade libxmlsec to 1.2.19
Obsoletes our xmlsec1-1.2.14-ansi.patch.1 and xmlsec1-android.patch.1.

Change-Id: Ic6499b1a79e3f5a6d94beb62c0c338789c782c86
Reviewed-on: https://gerrit.libreoffice.org/23844
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-04-06 06:11:53 +00:00

53 lines
2.3 KiB
Groff

From f93d90efc69dfd8471f446e583eaa77e4a8cde48 Mon Sep 17 00:00:00 2001
From: Miklos Vajna <vmiklos@collabora.co.uk>
Date: Fri, 4 Mar 2016 16:09:10 +0100
Subject: [PATCH] xmlsec1-nssdisablecallbacks.patch
Conflicts:
src/nss/crypto.c
---
src/nss/crypto.c | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/src/nss/crypto.c b/src/nss/crypto.c
index 7137f1c..7a59575 100644
--- a/src/nss/crypto.c
+++ b/src/nss/crypto.c
@@ -214,6 +214,7 @@ xmlSecCryptoGetFunctions_nss(void) {
* High level routines form xmlsec command line utility
*
********************************************************************/
+#if 0
gXmlSecNssFunctions->cryptoAppInit = xmlSecNssAppInit;
gXmlSecNssFunctions->cryptoAppShutdown = xmlSecNssAppShutdown;
gXmlSecNssFunctions->cryptoAppDefaultKeysMngrInit = xmlSecNssAppDefaultKeysMngrInit;
@@ -231,6 +232,25 @@ xmlSecCryptoGetFunctions_nss(void) {
gXmlSecNssFunctions->cryptoAppKeyLoad = xmlSecNssAppKeyLoad;
gXmlSecNssFunctions->cryptoAppKeyLoadMemory = xmlSecNssAppKeyLoadMemory;
gXmlSecNssFunctions->cryptoAppDefaultPwdCallback = (void*)xmlSecNssAppGetDefaultPwdCallback();
+#else
+ gXmlSecNssFunctions->cryptoAppInit = NULL;
+ gXmlSecNssFunctions->cryptoAppShutdown = NULL;
+ gXmlSecNssFunctions->cryptoAppDefaultKeysMngrInit = NULL;
+ gXmlSecNssFunctions->cryptoAppDefaultKeysMngrAdoptKey = NULL;
+ gXmlSecNssFunctions->cryptoAppDefaultKeysMngrLoad = NULL;
+ gXmlSecNssFunctions->cryptoAppDefaultKeysMngrSave = NULL;
+#ifndef XMLSEC_NO_X509
+ gXmlSecNssFunctions->cryptoAppKeysMngrCertLoad = NULL;
+ gXmlSecNssFunctions->cryptoAppKeysMngrCertLoadMemory= NULL;
+ gXmlSecNssFunctions->cryptoAppPkcs12Load = NULL;
+ gXmlSecNssFunctions->cryptoAppPkcs12LoadMemory = NULL;
+ gXmlSecNssFunctions->cryptoAppKeyCertLoad = NULL;
+ gXmlSecNssFunctions->cryptoAppKeyCertLoadMemory = NULL;
+#endif /* XMLSEC_NO_X509 */
+ gXmlSecNssFunctions->cryptoAppKeyLoad = NULL;
+ gXmlSecNssFunctions->cryptoAppKeyLoadMemory = NULL;
+ gXmlSecNssFunctions->cryptoAppDefaultPwdCallback = (void*)NULL;
+#endif
return(gXmlSecNssFunctions);
}
--
2.6.2