Spurious warning when using pgp compatibility modes?

Todd Zullinger tmz at pobox.com
Thu May 17 17:36:51 CEST 2007


Hi all,

With sig-keyserver-url $URL in gpg.conf:

$ gpg --pgp7 --detach-sign test

You need a passphrase to unlock the secret key for
[...]
gpg: can't put a preferred keyserver URL into v3 signatures

Now, I know that I can't do that but I don't want to be told about it
every time I sign something when I've explcitly enabled --pgp7.  Would
it be unreasonable to ignore preferred keyserver urls when pgp[67] are
used?

I've been using the attached patch (minus the pgp2 part which I just
added) for a while to do just this and I haven't noticed any problems.
(There may be cleaner ways to do this, but this was what I got working
without knowing the code too well. :)

If it's not appropriate to patch this out, is there a good way to
silence this without losing other info?  The --quiet option doesn't do
it.

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hang in there, retirement is only thirty years away!

-------------- next part --------------
Index: g10/gpg.c
===================================================================
--- g10/gpg.c	(revision 4504)
+++ g10/gpg.c	(working copy)
@@ -2998,6 +2998,8 @@
 	    xfree(s2k_digest_string);
 	    s2k_digest_string = xstrdup("md5");
 	    opt.compress_algo = COMPRESS_ALGO_ZIP;
+	    free_strlist(opt.sig_keyserver_url);
+	    opt.sig_keyserver_url=NULL;
 	  }
       }
     else if(PGP6)
@@ -3005,12 +3007,16 @@
 	opt.escape_from=1;
 	opt.force_v3_sigs=1;
 	opt.ask_sig_expire=0;
+	free_strlist(opt.sig_keyserver_url);
+	opt.sig_keyserver_url=NULL;
       }
     else if(PGP7)
       {
 	opt.escape_from=1;
 	opt.force_v3_sigs=1;
 	opt.ask_sig_expire=0;
+	free_strlist(opt.sig_keyserver_url);
+	opt.sig_keyserver_url=NULL;
       }
     else if(PGP8)
       {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 542 bytes
Desc: not available
Url : /pipermail/attachments/20070517/34918bc3/attachment.pgp 


More information about the Gnupg-users mailing list