Skip to content

Commit

Permalink
Add checks for role descriptors lacking KeyDescriptor elements.
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Jun 25, 2009
1 parent 0690cc4 commit 45c0559
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions build/check.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,29 @@
</xsl:call-template>
</xsl:template>


<!--
Check for role descriptors with missing KeyDescriptor elements.
-->

<xsl:template match="md:IDPSSODescriptor[not(md:KeyDescriptor)]">
<xsl:call-template name="fatal">
<xsl:with-param name="m">IdP SSO Descriptor lacking KeyDescriptor</xsl:with-param>
</xsl:call-template>
</xsl:template>

<xsl:template match="md:SPSSODescriptor[not(md:KeyDescriptor)]">
<xsl:call-template name="fatal">
<xsl:with-param name="m">SP SSO Descriptor lacking KeyDescriptor</xsl:with-param>
</xsl:call-template>
</xsl:template>

<xsl:template match="md:AttributeAuthorityDescriptor[not(md:KeyDescriptor)]">
<xsl:call-template name="fatal">
<xsl:with-param name="m">IdP AA Descriptor lacking KeyDescriptor</xsl:with-param>
</xsl:call-template>
</xsl:template>


<!--
Check for a construct which is known to cause the Shibboleth 1.3 SP to dump core.
Expand Down

0 comments on commit 45c0559

Please sign in to comment.