@@ -121,11 +121,18 @@ static PyObject* PyXmlSec_PyShutdown(PyObject* self) {
121121
122122static char PyXmlSec_GetLibXmlSecVersion__doc__ [] = \
123123 "get_libxmlsec_version() -> tuple\n"
124- "Returns Version tuple of wrapped libxml library." ;
124+ "Returns Version tuple of wrapped libxmlsec library." ;
125125static PyObject * PyXmlSec_GetLibXmlSecVersion () {
126126 return Py_BuildValue ("(iii)" , XMLSEC_VERSION_MAJOR , XMLSEC_VERSION_MINOR , XMLSEC_VERSION_SUBMINOR );
127127}
128128
129+ static char PyXmlSec_GetLibXmlVersion__doc__ [] = \
130+ "get_libxml_version() -> tuple\n"
131+ "Returns Version tuple of wrapped libxml library." ;
132+ static PyObject * PyXmlSec_GetLibXmlVersion () {
133+ return Py_BuildValue ("(iii)" , XMLSEC_LIBXML_VERSION_MAJOR , XMLSEC_LIBXML_VERSION_MINOR , XMLSEC_LIBXML_VERSION_PATCH );
134+ }
135+
129136static char PyXmlSec_PyEnableDebugOutput__doc__ [] = \
130137 "enable_debug_trace(enabled) -> None\n"
131138 "Enables or disables calling LibXML2 callback from the default errors callback.\n\n"
@@ -399,6 +406,12 @@ static PyMethodDef PyXmlSec_MainMethods[] = {
399406 METH_NOARGS ,
400407 PyXmlSec_GetLibXmlSecVersion__doc__
401408 },
409+ {
410+ "get_libxml_version" ,
411+ (PyCFunction )PyXmlSec_GetLibXmlVersion ,
412+ METH_NOARGS ,
413+ PyXmlSec_GetLibXmlVersion__doc__
414+ },
402415 {
403416 "enable_debug_trace" ,
404417 (PyCFunction )PyXmlSec_PyEnableDebugOutput ,
0 commit comments