[Rt-commit] r7399 - in rt/branches/3.7-EXPERIMENTAL: .
ruz at bestpractical.com
ruz at bestpractical.com
Thu Mar 29 21:27:15 EDT 2007
Author: ruz
Date: Thu Mar 29 21:27:14 2007
New Revision: 7399
Modified:
rt/branches/3.7-EXPERIMENTAL/ (props changed)
rt/branches/3.7-EXPERIMENTAL/lib/RT/Crypt/GnuPG.pm
Log:
r4866 at cubic-pc: cubic | 2007-03-30 05:13:09 +0400
* add support for uid records in key lists
Modified: rt/branches/3.7-EXPERIMENTAL/lib/RT/Crypt/GnuPG.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/lib/RT/Crypt/GnuPG.pm (original)
+++ rt/branches/3.7-EXPERIMENTAL/lib/RT/Crypt/GnuPG.pm Thu Mar 29 21:27:14 2007
@@ -905,6 +905,14 @@
$info{'OwnerTrust'} = _ConvertTrustChar( $info{'OwnerTrust'} );
push @res, \%info;
}
+ elsif ( $tag eq 'uid' ) {
+ my %info;
+ @info{ qw(Trust Created Expire String) }
+ = (split /:/, $line)[0,4,5,8];
+ $info{ $_ } = _ParseDate( $info{ $_ } )
+ foreach qw(Created Expire);
+ push @{ $res[-1]{'User'} ||= [] }, \%info;
+ }
elsif ( $tag eq 'fpr' ) {
$res[-1]{'Fingerprint'} = (split /:/, $line, 10)[8];
}
More information about the Rt-commit
mailing list