Re: GPG key loading takes too long

Sam Varshavchik <[email protected]> Tue, 23 Jan 2007 07:13:23 -0500
Newsgroups gmane.mail.cone
Message-ID <[email protected]>
Joachim Breitner writes:

> Hi,
> 
> Am Sonntag, den 21.01.2007, 19:31 -0500 schrieb Sam Varshavchik:
>> > I just had a look at cone and it looked very promising, especially the
>> > IMAP support. One thing though annoys me a lot: When I start it, it
>> > reads in all the keys in my public GPG keyring, which is rather large,
>> > delaying the start-up too much. Can this be somehow cached, or loaded in
>> > the background, or something else?
>> 
>> Feel free to submit patches.
> 
> I investigated the issue a bit further: The gpglib passes the
> --list-sigs option to gpg, but does not use the sigs in any way (the
> lines are ignored in dolist_callback). Changing that to --list-keys in
> list.c on line 63 fixes this and makes the start considerably faster:
> 
> -      argvec[1]= secret ? "--list-secret-keys":"--list-sigs";
> +      argvec[1]= secret ? "--list-secret-keys":"--list-keys";
> 
> I hope I didn’t miss anything, but I think this works just fine.

Not quite.  The signatures are shown when a gpg key is selected for 
encrypting or signing.  Although they are for informational purposes only, 
it is an important data that should not be swept under the rug.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Courier-cone mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-cone
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBFtfvjx9p3GYHlUOIRAqXPAJ0dX6y9jjb2KXd2xcqknez4ldXhpACbBZzn
ZOanubBUsIoJsGRRJuwqYgM=
=E48U
-----END PGP SIGNATURE-----