File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -47,18 +47,6 @@ long PyXmlSec_GetLibXmlCompiledVersionPatch() {
47
47
return XMLSEC_EXTRACT_PATCH (LIBXML_VERSION );
48
48
}
49
49
50
- static int PyXmlSec_CheckLibXmlLibraryVersion (void ) {
51
- // Make sure that the version of libxml2 that we were compiled against is the same as the one
52
- // that is loaded. If there is a version mismatch, we could run into segfaults.
53
-
54
- if (PyXmlSec_GetLibXmlVersionMajor () != PyXmlSec_GetLibXmlCompiledVersionMajor () ||
55
- PyXmlSec_GetLibXmlVersionMinor () != PyXmlSec_GetLibXmlCompiledVersionMinor ()) {
56
- return -1 ;
57
- }
58
-
59
- return 0 ;
60
- }
61
-
62
50
static int PyXmlSec_CheckLxmlLibraryVersion (void ) {
63
51
// Make sure that the version of libxml2 lxml is using is the same as the one we are using. Because
64
52
// we pass trees between the two libraries, we need to make sure that they are using the same version
@@ -104,11 +92,6 @@ static int PyXmlSec_CheckLxmlLibraryVersion(void) {
104
92
}
105
93
106
94
int PyXmlSec_InitLxmlModule (void ) {
107
- if (PyXmlSec_CheckLibXmlLibraryVersion () < 0 ) {
108
- PyXmlSec_SetLastError ("xmlsec libxml2 library compiled version vs runtime version mismatch" );
109
- return -1 ;
110
- }
111
-
112
95
if (PyXmlSec_CheckLxmlLibraryVersion () < 0 ) {
113
96
PyXmlSec_SetLastError ("lxml & xmlsec libxml2 library version mismatch" );
114
97
return -1 ;
You can’t perform that action at this time.
0 commit comments