diff --git a/lasso/xml/tools.c b/lasso/xml/tools.c index 181771ac..d220576a 100644 --- a/lasso/xml/tools.c +++ b/lasso/xml/tools.c @@ -2749,6 +2749,17 @@ lasso_xmlsec_load_key_info(xmlNode *key_descriptor) ctx.keyReq.keyUsage = xmlSecKeyDataUsageAny; ctx.certsVerificationDepth = 0; + if((xmlSecPtrListAdd(&ctx.enabledKeyData, BAD_CAST xmlSecKeyDataX509Id) < 0) || + (xmlSecPtrListAdd(&ctx.enabledKeyData, BAD_CAST xmlSecKeyDataValueId) < 0) || + (xmlSecPtrListAdd(&ctx.enabledKeyData, BAD_CAST xmlSecKeyDataRsaId) < 0) || + (xmlSecPtrListAdd(&ctx.enabledKeyData, BAD_CAST xmlSecKeyDataDsaId) < 0) || + (xmlSecPtrListAdd(&ctx.enabledKeyData, BAD_CAST xmlSecKeyDataHmacId) < 0)) { + message(G_LOG_LEVEL_CRITICAL, "Could not enable needed KeyData"); + goto next; + } + + + key = xmlSecKeyCreate(); if (lasso_flag_pem_public_key) { xmlSecErrorsDefaultCallbackEnableOutput(FALSE);