Changeset 43
- Timestamp:
- Jul 9, 2007, 9:29:00 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
keysigning/gpg-challenge.pl
r42 r43 27 27 my $occasion="something"; 28 28 29 foreach my $keyID (@ARGV) { 30 if ( $keyID !~ /[A-F0-9]{8}/i ) 31 { 32 die "\"$keyID\" doesn't look like a valid Key-ID!\n"; 33 } 34 35 printf stderr "Key ID: $keyID\n"; 29 sub get_uids ($) 30 { 31 my $keyID = shift; 36 32 37 33 my (%uids); … … 78 74 } 79 75 80 foreach $uid ( keys %uids ) 76 return %uids; 77 } 78 79 foreach my $keyID (@ARGV) { 80 if ( $keyID !~ /[A-F0-9]{8}/i ) 81 { 82 die "\"$keyID\" doesn't look like a valid Key-ID!\n"; 83 } 84 85 printf STDERR "Key ID: $keyID\n"; 86 my (%uids) = get_uids($keyID); 87 88 foreach my $uid ( keys %uids ) 81 89 { 82 90 # Get a random string:
Note: See TracChangeset
for help on using the changeset viewer.