Bug#428538: gpgsigs: Add information about incoming signatures

2007-06-17 Thread Thijs Kinkhorst
Hi,

On Wednesday 13 June 2007 07:15, Aníbal Monsalve Salazar wrote:
 It would be very nice if we could use this patch before dc7 starts.

Thanks for the patch, but I'm afraid I'm taken up by some other projects in 
the short term. Maybe you can ask Christoph or Peter, who are both supposed 
to be around at Debconf themselves?


Thijs


pgpFuIr7vpdlC.pgp
Description: PGP signature


Bug#428538: gpgsigs: Add information about incoming signatures

2007-06-13 Thread Joachim Breitner
Hi,

Am Mittwoch, den 13.06.2007, 15:15 +1000 schrieb Aníbal Monsalve
Salazar:
 Hello All,
 
 It would be very nice if we could use this patch before dc7 starts.

You could mention it, with a link to the file on bts, on the DebConf7
Keysigning Wiki page.

Greetings,
Joachim
-- 
Joachim nomeata Breitner
Debian Developer
  [EMAIL PROTECTED] | ICQ# 74513189 | GPG-Keyid: 4743206C
  JID: [EMAIL PROTECTED] | http://people.debian.org/~nomeata




Bug#428538: gpgsigs: Add information about incoming signatures

2007-06-13 Thread Aníbal Monsalve Salazar
On Wed, Jun 13, 2007 at 10:29:26AM +0100, Joachim Breitner wrote:
Hi,

Am Mittwoch, den 13.06.2007, 15:15 +1000 schrieb Aníbal Monsalve Salazar:
 Hello All,
 
 It would be very nice if we could use this patch before dc7 starts.

[Take #2]

It would be very nice if we could use gpgsigs with this patch before
dc7 starts.

You could mention it, with a link to the file on bts, on the DebConf7
Keysigning Wiki page.

We are using sha256 checksums for the dc7-ksp, please see:

https://debconf7.debconf.org/wiki/Keysigning

Greetings,
Joachim
-- 
Joachim nomeata Breitner
Debian Developer
  [EMAIL PROTECTED] | ICQ# 74513189 | GPG-Keyid: 4743206C
  JID: [EMAIL PROTECTED] | http://people.debian.org/~nomeata


Mit freundlichen Grüßen,

Aníbal Monsalve Salazar
-- 
http://v7w.com/anibal


signature.asc
Description: Digital signature


Bug#428538: gpgsigs: Add information about incoming signatures

2007-06-12 Thread Joachim Breitner
Package: signing-party
Version: 0.4.10-1
Severity: wishlist
File: /usr/bin/gpgsigs
Tags: patch

Hi,

for DebConf 7, I implemented a change that adds information about
incoming signatures to the output, for each own non-revoked uid.

The attached patch also adds support for SHA256 hashes.

Thanks,
Joachim


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.21.otto
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages signing-party depends on:
ii  gnupg 1.4.6-2GNU privacy guard - a free PGP rep
ii  libgnupg-interface-perl   0.33-6 Perl interface to GnuPG
ii  libmailtools-perl 1.74-1 Manipulate email in perl programs
ii  libmime-perl  5.420-1Perl5 modules for MIME-compliant m
ii  libtext-template-perl 1.44-1.1   Text::Template perl module

Versions of packages signing-party recommends:
ii  dialog1.1-20070604-1 Displays user-friendly dialog boxe
ii  exim4 4.67-1 metapackage to ease exim MTA (v4) 
ii  exim4-daemon-light [mail- 4.67-1 lightweight exim MTA (v4) daemon
ii  libintl-perl  1.16-3 Uniforum message translations syst
ii  libpaper-utils1.1.21 Library for handling paper charact
ii  libtext-iconv-perl1.4-3  converts between character sets in
ii  whiptail  0.52.2-10  Displays user-friendly dialog boxe

-- no debconf information
--- /usr/bin/gpgsigs2007-03-02 13:02:00.0 +
+++ ./gpgsigs   2007-06-12 11:08:47.0 +0100
@@ -115,6 +115,7 @@
 
 my @mykeys = split /,/, $mykey;
 map { s/^0x//i; } @mykeys;
+my %myuids = map { $_ = [] } @mykeys;
 
 if ([EMAIL PROTECTED] || scalar @ARGV) {
usage(*STDERR, 1);
@@ -148,17 +149,25 @@
 open SIGS, gpg --fixed-list-mode --with-colons --list-sigs @keys 2/dev/null 
|
or die can't get gpg listing;
 
-my ($key, $uid, $sigs);
+my ($key, $uid, $sigs, $uidstatus);
 while (SIGS) {
if ( m/^pub:(?:.*?:){3,3}([0-9A-F]{16,16}):/ ) {
$key = $1;
print STDERR .;
next;
}
-   if ( m/^uid:(?:.*?:){8,8}(.*):/s ) {
-   $uid = $1;
+   if ( m/^uid:(.):(?:.*?:){7,7}(.*):/s ) {
+   $uidstatus = $1;
+   $uid = $2;
$uid =~ s/\\x([0-9a-f][0-9a-f])/ chr(hex($1)) /gie;
$uid = myrecode($uid, UTF-8, $charset);
+
+   my ($shortkey) = substr $key, -8;
+   # Remember own, non-revoced uids
+   if (exists $myuids{$shortkey} and $uidstatus ne r) {
+   push @{$myuids{$shortkey}}, $uid
+   }
+
next;
}
if ( 
m/^sig:(?:.*?:){3,3}([0-9A-F]{8})([0-9A-F]{8}):(?:.*?:){5,5}(.*?):/ ) {
@@ -215,22 +224,31 @@
 open MD, gpg --with-colons --print-md sha1 $keytxt| or warn can't get gpg 
sha1\n;
 my $SHA1 = MD;
 close MD;
+open MD, gpg --with-colons --print-md sha256 $keytxt| or warn can't get gpg 
sha256\n;
+my $SHA256 = MD;
+close MD;
 
 my @MD5 = split /:/, $MD5;
 my @SHA1 = split /:/, $SHA1;
+my @SHA256 = split /:/, $SHA256;
 $MD5 = $MD5[2];
 $SHA1 = $SHA1[2];
+$SHA256 = $SHA256[2];
 
 $MD5 =~ s/(.{16})/$1 /;
 $SHA1 =~ s/(.{20})/$1 /;
+$SHA256 =~ s/(.{32})/$1 /;
 $MD5 =~ s/([0-9A-Z]{2})/$1 /ig;
 $SHA1 =~ s/([0-9A-Z]{4})/$1 /ig;
+$SHA256 =~ s/([0-9A-Z]{4})/$1 /ig;
 
 chomp $MD5;
 chomp $SHA1;
+chomp $SHA256;
 my $metatxt = quotemeta($keytxt);
 $MD5 =~ s/^$metatxt:\s*//;
 $SHA1 =~ s/^$metatxt:\s*//;
+$SHA256 =~ s/^$metatxt:\s*//;
 
 
 # write out result
@@ -267,6 +285,9 @@
if (/^SHA1 Checksum:/  defined $SHA1) {
s/[_[:xdigit:]][_ [:xdigit:]]+_/$SHA1/;
}
+   if (/^SHA256 Checksum:/  defined $SHA256) {
+   s/[_[:xdigit:]][_ [:xdigit:]]+_/$SHA256/;
+   }
if ( m/^pub  +(?:\d+)[DR]\/([0-9A-F]{8}) [0-9]{4}-[0-9]{2}-[0-9]{2} 
*(.*)/ ) {
$key = $1;
$uid = $2;
@@ -274,6 +295,16 @@
#   print WRITE print_tag($key, $uid) .  $_;
#   next;
#}
+   print WRITE;
+   foreach my $mykey (@mykeys) {
+   foreach my $myuid (@{$myuids{$mykey}}) {
+   my $testuid = 'Joachim Breitner [EMAIL 
PROTECTED]';
+   my $r .= defined 
$sigs-{$mykey}-{$myuid}-{$key} ? $sigs-{$mykey}-{$myuid}-{$key} : ' ';
+   print WRITE Incoming Signature: [$r] $mykey 
$myuid\n;
+   }
+   }
+   next
+
}
if ( m/^uid +(.*)$/ ) {
$uid = $1;


gpgsigs
Description: Perl program


Bug#428538: gpgsigs: Add information about incoming signatures

2007-06-12 Thread Aníbal Monsalve Salazar
On Tue, Jun 12, 2007 at 01:08:18PM +0100, Joachim Breitner wrote:
Package: signing-party
Version: 0.4.10-1
Severity: wishlist
File: /usr/bin/gpgsigs
Tags: patch

Hi,

for DebConf 7, I implemented a change that adds information about
incoming signatures to the output, for each own non-revoked uid.

The attached patch also adds support for SHA256 hashes.

Thanks,
Joachim

Hello All,

It would be very nice if we could use this patch before dc7 starts.

Best Regards,

Aníbal Monsalve Salazar
-- 
http://v7w.com/anibal


signature.asc
Description: Digital signature