Skip to content

Commit

Permalink
Check for entities which have both PKIX-only KeyDescriptors (i.e., on…
Browse files Browse the repository at this point in the history
…es with a KeyName but no embedded X.509 certificate) and also non-PKIX KeyDescriptors (i.e., ones with no KeyName).

This combination seems unlikely to be intentional, and most likely the result of an incomplete transition to embedded key material.
  • Loading branch information
iay committed Oct 23, 2012
1 parent c2726c0 commit 360abeb
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions mdx/check_future_2.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,21 @@
-->
<xsl:import href="../build/check_framework.xsl"/>

<!--
Check for entities which have both PKIX-only KeyDescriptors (i.e.,
ones with a KeyName but no embedded X.509 certificate) and also
non-PKIX KeyDescriptors (i.e., ones with no KeyName).
This combination seems unlikely to be intentional, and most
likely the result of an incomplete transition to embedded key
material.
-->
<xsl:template match="md:EntityDescriptor
[descendant::md:KeyDescriptor[not(descendant::ds:X509Data)]]
[descendant::md:KeyDescriptor[not(descendant::ds:KeyName)]]">
<xsl:call-template name="error">
<xsl:with-param name="m">has both PKIX-only and no-PKIX KeyDescriptors</xsl:with-param>
</xsl:call-template>
</xsl:template>

</xsl:stylesheet>

0 comments on commit 360abeb

Please sign in to comment.