r4496@hubble: cbe | 2007-06-25 11:06:37 +0200
authormyon <myon@b513b33f-fedd-0310-b452-c3deb5f4c849>
Mon, 25 Jun 2007 09:18:41 +0000 (09:18 +0000)
committermyon <myon@b513b33f-fedd-0310-b452-c3deb5f4c849>
Mon, 25 Jun 2007 09:18:41 +0000 (09:18 +0000)
 * Allow spaces in keyids/fingerprints for easier cut-and-paste.

git-svn-id: svn://svn.debian.org/pgp-tools/trunk@330 b513b33f-fedd-0310-b452-c3deb5f4c849

caff/README.many-keys
caff/README.v3-keys
caff/caff

index 1fe8eb11ba6c45daea4022d23b31e23518b6b57e..6e46bc444415fc40047e7a12944e8269eacd8e4e 100644 (file)
@@ -11,10 +11,12 @@ Some hints to get the signing done faster:
 
   caff and gpg allow you to specify the full fingerprint. This will save you
   from having to check the fingerprint yourself. If you have a text file with
-  all fingerprints (with all the spaces stripped from them), use that and then
-  run
+  all fingerprints, use that and then run
 
-  $ caff <options> `cat ksp-fingerprints.txt`
+  $ caff <options> "`cat ksp-fingerprints.txt`"
+
+  For convenience, caff also allows spaces in fingerprints/keyids as output by
+  gpg --fingerprint. (Remember to properly quote arguments as shown above.)
 
 * v3 keys are evil.
 
@@ -35,17 +37,13 @@ Some hints to get the signing done faster:
 
   Going through retrieving, signing, and mailing keys can help, e.g.:
 
-  $ caff --no-sign --no-export-old --no-mail `cat ksp-fingerprints.txt`
-  $ caff --no-download --no-export-old --no-mail `cat ksp-fingerprints.txt`
-  $ caff --no-download --no-sign --no-export-old `cat ksp-fingerprints.txt`
-
-* If you have multiple local keys, only send mail once after signing with all.
+  $ caff --no-sign --no-export-old --no-mail "`cat ksp-fingerprints.txt`"
+  $ caff --no-download --no-export-old --no-mail "`cat ksp-fingerprints.txt`"
+  $ caff --no-download --no-sign --no-export-old "`cat ksp-fingerprints.txt`"
 
-  caff will send out all previously done signatures in the message. (Of course
-  you have to configure $CONFIG{'keyid'} to contain all your key ids.)
+* If you have multiple local keys, use -u <mykey1>,<mykey2>.
 
-  $ caff --no-export-old --no-mail -u <mykey1> <keyids to sign>
-  $ caff --no-download --no-export-old -u <mykey2> <keyids to sign>
+  $ caff -u <mykey1>,<mykey2> <keyids to sign>
 
 * Use gpg-agent.
 
@@ -61,4 +59,4 @@ Some hints to get the signing done faster:
   prompt any more; you will have *not* to send out some mails. (And you have
   unwanted signatures lingering around in ~/.caff/gnupghome/pubring.gpg.)
 
- -- Christoph Berg <cb@df7cb.de>  Wed,  6 Jul 2005 13:46:16 +0200
+ -- Christoph Berg <cb@df7cb.de>  Mon, 25 Jun 2007 10:55:40 +0200
index 0b22a96c8b741e6372c60cc4d70d3aa3b40ea6b7..c1ac836ac9564300f1613f74f38021ffcef55645 100644 (file)
@@ -1,10 +1,10 @@
 v3 keys are evil
 ----------------
 
-The good thing about v4 keys is that the fingerprint ends contains the 8 byte
-(16 char) key id at the and and that the 8 byte key id likewise ends in the 4
-byte key id. For v3 keys it does not. This, and some issues with HKP key
-servers make the handling of v3 a PITA.
+The good thing about v4 keys is that the last 16 chars of the fingerprint are
+the same as the 8 byte keyid, and likewise the last 8 chars are the 4 byte
+keyid. For v3 keys that is not true. This, and some issues with HKP key servers
+make the handling of v3 a PITA.
 
 To sign v3 keys with caff, do the following:
 
index 8ec09e3c7c2198cee41b797473a2d7f2d8c758b2..ae922cd96d2f2e7020ba7f1bfe69f0740a8d0d0c 100755 (executable)
--- a/caff/caff
+++ b/caff/caff
@@ -909,8 +909,9 @@ $CONFIG{'mail'}        = $params->{'mail'}        if defined $params->{'mail'};
 $CONFIG{'no-sign'}     = $params->{'no-sign'}     if defined $params->{'no-sign'};
 push @{$CONFIG{'key-files'}}, @{$params->{'key-files'}} if defined $params->{'key-files'};
 
-for my $keyid (@ARGV) {
+for my $keyid (map { split /\n/ } @ARGV) { # caff "`cat txt`" is a single argument
        $keyid =~ s/^0x//i;
+       $keyid =~ s/ //g; # gpg --fingerprint includes spaces
        if ($keyid =~ /^[A-F0-9]{32}$/i) {
                info("Ignoring v3 fingerprint $keyid.  v3 keys are obsolete.");
                next;