source: swig/perl/creddy_keyid.pl @ 7764378

abac0-leak
Last change on this file since 7764378 was 7764378, checked in by Mei <mei@…>, 11 years ago

1) tweak according valgrind's leak report

  • Property mode set to 100755
File size: 299 bytes
RevLine 
[9e51a80]1#!/usr/bin/perl
2
[7764378]3use ABAC;
[9e51a80]4
5my $filename = shift || die "Usage: creddy_keyid.pl <cert.pem>\n";
6
7my $id;
8eval {
9    # will throw a RuntimeException if it can't load the cert
10    $id = Creddy::ID->new($filename);
11};
12if ($@) {
13    print "Problem loading cert: $@";
14    exit;
15}
16
17print $id->keyid, "\n";
Note: See TracBrowser for help on using the repository browser.