File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -284,7 +284,9 @@ int PyXmlSec_ConstantsModule_Init(PyObject* package) {
284
284
PYXMLSEC_ADD_NS_CONSTANT (Ns , "BASE" );
285
285
PYXMLSEC_ADD_NS_CONSTANT (DSigNs , "DS" );
286
286
PYXMLSEC_ADD_NS_CONSTANT (EncNs , "ENC" );
287
+ #ifndef XMLSEC_NO_XKMS
287
288
PYXMLSEC_ADD_NS_CONSTANT (XkmsNs , "XKMS" );
289
+ #endif
288
290
PYXMLSEC_ADD_NS_CONSTANT (XPathNs , "XPATH" );
289
291
PYXMLSEC_ADD_NS_CONSTANT (XPath2Ns , "XPATH2" );
290
292
PYXMLSEC_ADD_NS_CONSTANT (XPointerNs , "XPOINTER" );
Original file line number Diff line number Diff line change 21
21
22
22
#define XMLSEC_VERSION_HEX ((XMLSEC_VERSION_MAJOR << 8) | (XMLSEC_VERSION_MINOR << 4) | (XMLSEC_VERSION_SUBMINOR))
23
23
24
+ // XKMS support was removed in version 1.2.21
25
+ // https://mail.gnome.org/archives/commits-list/2015-February/msg10555.html
26
+ #if XMLSEC_VERSION_HEX > 0x134
27
+ #define XMLSEC_NO_XKMS 1
28
+ #endif
29
+
24
30
#define XSTR (c ) (const xmlChar*)(c)
25
31
26
32
#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN )
You can’t perform that action at this time.
0 commit comments