gnupg/g10 (ChangeLog keyserver.c options.h)
cvs user dshaw
cvs at cvs.gnupg.org
Thu Mar 17 23:41:44 CET 2005
Date: Thursday, March 17, 2005 @ 23:55:17
Author: dshaw
Path: /cvs/gnupg/gnupg/g10
Modified: ChangeLog keyserver.c options.h
* options.h, keyserver.c (parse_keyserver_options, keyserver_spawn): Don't
treat 'verbose' and 'include-disabled' as special. Just pass them through
silently to the keyserver helper.
-------------+
ChangeLog | 6 ++++++
keyserver.c | 14 +++-----------
options.h | 20 +++++++++-----------
3 files changed, 18 insertions(+), 22 deletions(-)
Index: gnupg/g10/ChangeLog
diff -u gnupg/g10/ChangeLog:1.706 gnupg/g10/ChangeLog:1.707
--- gnupg/g10/ChangeLog:1.706 Wed Mar 16 20:10:54 2005
+++ gnupg/g10/ChangeLog Thu Mar 17 23:55:17 2005
@@ -1,3 +1,9 @@
+2005-03-17 David Shaw <dshaw at jabberwocky.com>
+
+ * options.h, keyserver.c (parse_keyserver_options,
+ keyserver_spawn): Don't treat 'verbose' and 'include-disabled' as
+ special. Just pass them through silently to the keyserver helper.
+
2005-03-16 Werner Koch <wk at g10code.com>
* ccid-driver.c (parse_ccid_descriptor): Make SCM workaround
Index: gnupg/g10/keyserver.c
diff -u gnupg/g10/keyserver.c:1.81 gnupg/g10/keyserver.c:1.82
--- gnupg/g10/keyserver.c:1.81 Thu Mar 10 20:34:40 2005
+++ gnupg/g10/keyserver.c Thu Mar 17 23:55:17 2005
@@ -54,12 +54,11 @@
};
/* Tell remote processes about these options */
-#define REMOTE_TELL (KEYSERVER_INCLUDE_REVOKED|KEYSERVER_INCLUDE_DISABLED|KEYSERVER_INCLUDE_SUBKEYS|KEYSERVER_TRY_DNS_SRV)
+#define REMOTE_TELL (KEYSERVER_INCLUDE_REVOKED|KEYSERVER_INCLUDE_SUBKEYS|KEYSERVER_TRY_DNS_SRV)
static struct parse_options keyserver_opts[]=
{
{"include-revoked",KEYSERVER_INCLUDE_REVOKED,NULL},
- {"include-disabled",KEYSERVER_INCLUDE_DISABLED,NULL},
{"include-subkeys",KEYSERVER_INCLUDE_SUBKEYS,NULL},
{"keep-temp-files",KEYSERVER_KEEP_TEMP_FILES,NULL},
{"refresh-add-fake-v3-keyids",KEYSERVER_ADD_FAKE_V3,NULL},
@@ -97,17 +96,13 @@
that you must use strncasecmp here as there might be an
=argument attached which will foil the use of strcasecmp. */
- if(ascii_strncasecmp(tok,"verbose",7)==0)
- opt.keyserver_options.verbose++;
- else if(ascii_strncasecmp(tok,"no-verbose",10)==0)
- opt.keyserver_options.verbose--;
#ifdef EXEC_TEMPFILE_ONLY
- else if(ascii_strncasecmp(tok,"use-temp-files",14)==0 ||
+ if(ascii_strncasecmp(tok,"use-temp-files",14)==0 ||
ascii_strncasecmp(tok,"no-use-temp-files",17)==0)
log_info(_("WARNING: keyserver option `%s' is not used"
" on this platform\n"),tok);
#else
- else if(ascii_strncasecmp(tok,"use-temp-files",14)==0)
+ if(ascii_strncasecmp(tok,"use-temp-files",14)==0)
opt.keyserver_options.options|=KEYSERVER_USE_TEMP_FILES;
else if(ascii_strncasecmp(tok,"no-use-temp-files",17)==0)
opt.keyserver_options.options&=~KEYSERVER_USE_TEMP_FILES;
@@ -931,9 +926,6 @@
if(opt.keyserver_options.options & kopts[i].bit & REMOTE_TELL)
fprintf(spawn->tochild,"OPTION %s\n",kopts[i].name);
- for(i=0;i<opt.keyserver_options.verbose;i++)
- fprintf(spawn->tochild,"OPTION verbose\n");
-
for(temp=opt.keyserver_options.other;temp;temp=temp->next)
fprintf(spawn->tochild,"OPTION %s\n",temp->d);
Index: gnupg/g10/options.h
diff -u gnupg/g10/options.h:1.133 gnupg/g10/options.h:1.134
--- gnupg/g10/options.h:1.133 Sat Jan 1 22:21:11 2005
+++ gnupg/g10/options.h Thu Mar 17 23:55:17 2005
@@ -1,6 +1,6 @@
/* options.h
- * Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003,
- * 2004 Free Software Foundation, Inc.
+ * Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004,
+ * 2005 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
*
@@ -137,7 +137,6 @@
} *keyserver;
struct
{
- int verbose;
unsigned int options;
unsigned int import_options;
unsigned int export_options;
@@ -283,13 +282,12 @@
#define VERIFY_SHOW_UNUSABLE_UIDS (1<<6)
#define KEYSERVER_INCLUDE_REVOKED (1<<0)
-#define KEYSERVER_INCLUDE_DISABLED (1<<1)
-#define KEYSERVER_INCLUDE_SUBKEYS (1<<2)
-#define KEYSERVER_USE_TEMP_FILES (1<<3)
-#define KEYSERVER_KEEP_TEMP_FILES (1<<4)
-#define KEYSERVER_ADD_FAKE_V3 (1<<5)
-#define KEYSERVER_AUTO_KEY_RETRIEVE (1<<6)
-#define KEYSERVER_TRY_DNS_SRV (1<<7)
-#define KEYSERVER_HONOR_KEYSERVER_URL (1<<8)
+#define KEYSERVER_INCLUDE_SUBKEYS (1<<1)
+#define KEYSERVER_USE_TEMP_FILES (1<<2)
+#define KEYSERVER_KEEP_TEMP_FILES (1<<3)
+#define KEYSERVER_ADD_FAKE_V3 (1<<4)
+#define KEYSERVER_AUTO_KEY_RETRIEVE (1<<5)
+#define KEYSERVER_TRY_DNS_SRV (1<<6)
+#define KEYSERVER_HONOR_KEYSERVER_URL (1<<7)
#endif /*G10_OPTIONS_H*/
More information about the Gnupg-commits
mailing list