Skip to content

Commit

Permalink
Fix multi predicate negation in check_saml2
Browse files Browse the repository at this point in the history
From (part-of) commit hash ukf/ukf-testbed/4d362d9f9b289ecf9bd96f09b7bd5368ac2ad7b6

See ukf/ukf-meta#432
  • Loading branch information
Phil Smart committed Jun 4, 2024
1 parent d3f22ed commit 9cf7382
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mdx/_rules/check_saml2.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@
-->
<xsl:template match="md:SPSSODescriptor
[contains(@protocolSupportEnumeration, 'urn:oasis:names:tc:SAML:2.0:protocol')]
[not(md:KeyDescriptor[descendant::ds:X509Data][@use='encryption'])]
[not(md:KeyDescriptor[descendant::ds:X509Data][not(@use)])]">
[not((md:KeyDescriptor[descendant::ds:X509Data and @use='encryption']) or ((md:KeyDescriptor[descendant::ds:X509Data and not(@use)])))]">
<xsl:call-template name="error">
<xsl:with-param name="m">SAML 2.0 SP has no encryption key</xsl:with-param>
</xsl:call-template>
Expand Down

0 comments on commit 9cf7382

Please sign in to comment.