[svn] GnuPG - r4018 - trunk/g10
svn author dshaw
cvs at cvs.gnupg.org
Wed Feb 22 21:34:50 CET 2006
Author: dshaw
Date: 2006-02-22 21:34:48 +0100 (Wed, 22 Feb 2006)
New Revision: 4018
Modified:
trunk/g10/ChangeLog
trunk/g10/keyserver.c
trunk/g10/options.h
Log:
* options.h, keyserver.c (parse_keyserver_options): Remove
auto-cert-retrieve as it is no longer meaningful. Add max-cert-size to
allow users to pick a max key size retrieved via CERT.
Modified: trunk/g10/ChangeLog
===================================================================
--- trunk/g10/ChangeLog 2006-02-22 20:20:58 UTC (rev 4017)
+++ trunk/g10/ChangeLog 2006-02-22 20:34:48 UTC (rev 4018)
@@ -1,5 +1,10 @@
2006-02-22 David Shaw <dshaw at jabberwocky.com>
+ * options.h, keyserver.c (parse_keyserver_options): Remove
+ auto-cert-retrieve as it is no longer meaningful. Add
+ max-cert-size to allow users to pick a max key size retrieved via
+ CERT.
+
* options.h, gpg.c (main), mainproc.c (check_sig_and_print),
keyserver.c (keyserver_opts): Rename auto-pka-retrieve to
honor-pka-record to be consistent with honor-keyserver-url.
Modified: trunk/g10/keyserver.c
===================================================================
--- trunk/g10/keyserver.c 2006-02-22 20:20:58 UTC (rev 4017)
+++ trunk/g10/keyserver.c 2006-02-22 20:34:48 UTC (rev 4018)
@@ -72,6 +72,7 @@
static struct parse_options keyserver_opts[]=
{
+ {"max-cert-size",0,NULL,NULL},
{"include-revoked",KEYSERVER_INCLUDE_REVOKED,NULL,
N_("include revoked keys in search results")},
{"include-subkeys",KEYSERVER_INCLUDE_SUBKEYS,NULL,
@@ -85,8 +86,6 @@
NULL},
{"auto-key-retrieve",KEYSERVER_AUTO_KEY_RETRIEVE,NULL,
N_("automatically retrieve keys when verifying signatures")},
- {"auto-cert-retrieve",KEYSERVER_AUTO_CERT_RETRIEVE,NULL,
- N_("automatically retrieve keys from DNS")},
{"try-dns-srv",KEYSERVER_TRY_DNS_SRV,NULL,
NULL},
{"honor-keyserver-url",KEYSERVER_HONOR_KEYSERVER_URL,NULL,
@@ -112,7 +111,7 @@
char *tok;
char *max_cert;
- keyserver_opts[7].value=&max_cert;
+ keyserver_opts[0].value=&max_cert;
while((tok=optsep(&options)))
{
@@ -173,10 +172,9 @@
}
}
- if(opt.keyserver_options.options&KEYSERVER_AUTO_CERT_RETRIEVE)
+ if(max_cert)
{
- if(max_cert)
- max_cert_size=strtoul(max_cert,(char **)NULL,10);
+ max_cert_size=strtoul(max_cert,(char **)NULL,10);
if(max_cert_size==0)
max_cert_size=DEFAULT_MAX_CERT_SIZE;
Modified: trunk/g10/options.h
===================================================================
--- trunk/g10/options.h 2006-02-22 20:20:58 UTC (rev 4017)
+++ trunk/g10/options.h 2006-02-22 20:34:48 UTC (rev 4018)
@@ -320,6 +320,5 @@
#define KEYSERVER_TRY_DNS_SRV (1<<6)
#define KEYSERVER_HONOR_KEYSERVER_URL (1<<7)
#define KEYSERVER_HONOR_PKA_RECORD (1<<8)
-#define KEYSERVER_AUTO_CERT_RETRIEVE (1<<9)
#endif /*G10_OPTIONS_H*/
More information about the Gnupg-commits
mailing list