compatibilité libxmlsec1 1.3.x (#85339) #10

Merged
bdauvergne merged 6 commits from wip/85339-lasso-regression-build-failure-a into main 2024-04-16 17:48:19 +02:00

6 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
Benjamin Dauvergne 3768f1bedf xmlsec: re-enable KeyValue nodes when reading KeyInfo descriptors (#85339)
KeyValue has been disabled in libxmlsec >= 1.3.3, as it can be a security
liability in other settings than SAML:

   (xmlsec-core) Disabled KeyValue and DEREncodedKeyValue XML nodes by default. Use the '--enabled-key-data' option for the xmlsec command line utility or update the 'keyInfoCtx->enabledKeyData' parameter if you need to re-enable these nodes (also see question 3.5 in the FAQ).
2024-04-16 11:02:13 +02:00
Benjamin Dauvergne 21c224cfef xmlsec: use XMLSEC_KEYINFO_FLAGS_LAX_KEY_SEARCH when writing encrypted keys (#85339)
For compatibility with libxmlsec1>=1.3.0, as we do not use KeyName to
reference the wrapping key:

  (API breaking change) Changed the key search to strict mode: only keys referenced by KeyInfo are used. To restore the old "lax" mode, set XMLSEC_KEYINFO_FLAGS_LAX_KEY_SEARCH flag on xmlSecKeyInfoCtx or use '--lax-key-search' option for XMLSec command line utility.
2024-04-16 11:02:13 +02:00
Benjamin Dauvergne 66c9f50f1f xmlsec: replace xmlSecCryptoAppKeyLoad by xmlSecCryptoAppKeyLoadEx (#85339)
xmlSecCryptoAppKeyLoad was removed from libxmlsec1 in version >= 1.3.3:

  (xmlsec-core) Removed previously deprecated functions, defines, etc.

xmlSecCryptoAppKeyLoadEx was introduced in libxmlsec in version 1.3.0.
2024-04-16 09:24:15 +02:00
Benjamin Dauvergne 1ca8e8699c misc: mute warning about implicit declaration of lasso_get_default_signature_method (#85339) 2024-04-16 09:24:15 +02:00
Benjamin Dauvergne 46caef8185 xml: fix uninitialized local variable (#85339) 2024-04-16 09:24:15 +02:00