Compare commits

..

1 Commits

Author SHA1 Message Date
Benjamin Dauvergne 49e0ea80c8 Fix undefined macro in #if conditional (#85339)
gitea/lasso/pipeline/head This commit looks good Details
2024-04-16 16:32:57 +02:00
1 changed files with 0 additions and 4 deletions

View File

@ -128,14 +128,10 @@ get_xmlNode(LassoNode *node, gboolean lasso_dump)
lasso_foreach(it, other_session_index) {
xmlNode *child = xmlSecAddChild(xmlnode, BAD_CAST SESSION_INDEX,
BAD_CAST LASSO_SAML2_PROTOCOL_HREF);
#if (XMLSEC_VERSION_MAJOR > 1) || (XMLSEC_VERSION_MAJOR == 1 && XMLSEC_VERSION_MINOR > 2) || (XMLSEC_VERSION_MAJOR == 1 && XMLSEC_VERSION_MINOR == 2 && XMLSEC_VERSION_SUBMINOR > 12)
xmlSecNodeEncodeAndSetContent(child, BAD_CAST it->data);
#else
xmlChar *content;
content = xmlEncodeSpecialChars(child->doc, BAD_CAST it->data);
xmlNodeSetContent(child, content);
xmlFree(content);
#endif
}
((LassoSamlp2LogoutRequest*)node)->SessionIndex = keep_session_index;
lasso_release_list_of_strings(other_session_index);