Skip to content

Commit

Permalink
Chart number of entities lacking embedded key material.
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Apr 1, 2013
1 parent 1f03a2d commit fe208a1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 8 additions & 1 deletion charting/trust.pl
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,15 @@
open(TXT, xalanCall . " -IN $fn -XSL trust.xsl|") || die "could not open input file";
$_ = <TXT>;
chop;
my ($entities, $idps, $sps, $dk_total, $dk_idp, $dk_sp, $pk_total, $pk_idp, $pk_sp) = split;
#print ">" . $_ . "<\n";
my ($entities, $idps, $sps, $dk_total, $dk_idp, $dk_sp, $pk_total, $pk_idp, $pk_sp, $no_embed) = split;
push @overallRatio, $dk_total/$entities;
push @idpRatio, $dk_idp/$idps;
push @spRatio, $dk_sp/$sps;
push @PKoverallRatio, $pk_total/$entities;
push @PKidpRatio, $pk_idp/$idps;
push @PKspRatio, $pk_sp/$sps;
push @NoEmbed, $no_embed;
close TXT;
}

Expand Down Expand Up @@ -67,4 +69,9 @@
print "$ratio\n";
}

print "No embedded keys\n";
foreach $no_embed (@NoEmbed) {
print "$no_embed\n";
}

1;
2 changes: 2 additions & 0 deletions charting/trust.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
<xsl:value-of select="count($idps[descendant::ds:KeyName])"/>
<xsl:text> </xsl:text>
<xsl:value-of select="count($sps[descendant::ds:KeyName])"/>
<xsl:text> </xsl:text>
<xsl:value-of select="count($entities[not(descendant::ds:X509Data)])"/>
<xsl:text>&#10;</xsl:text>
</xsl:template>

Expand Down

0 comments on commit fe208a1

Please sign in to comment.