mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* keyserver.c (argsep): Move to misc.c.
* main.h, misc.c (parse_options), export.c (parse_export_options), import.c (parse_import_options), g10.c (main): Use it here to allow for options with optional arguments. Change all callers.
This commit is contained in:
parent
f407bb6a97
commit
c9aa5000d7
7 changed files with 103 additions and 93 deletions
16
g10/import.c
16
g10/import.c
|
@ -88,13 +88,13 @@ parse_import_options(char *str,unsigned int *options,int noisy)
|
|||
{
|
||||
struct parse_options import_opts[]=
|
||||
{
|
||||
{"allow-local-sigs",IMPORT_ALLOW_LOCAL_SIGS},
|
||||
{"repair-hkp-subkey-bug",IMPORT_REPAIR_PKS_SUBKEY_BUG},
|
||||
{"repair-pks-subkey-bug",IMPORT_REPAIR_PKS_SUBKEY_BUG},
|
||||
{"fast-import",IMPORT_FAST_IMPORT},
|
||||
{"convert-sk-to-pk",IMPORT_SK2PK},
|
||||
{"merge-only",IMPORT_MERGE_ONLY},
|
||||
{NULL,0}
|
||||
{"allow-local-sigs",IMPORT_ALLOW_LOCAL_SIGS,NULL},
|
||||
{"repair-hkp-subkey-bug",IMPORT_REPAIR_PKS_SUBKEY_BUG,NULL},
|
||||
{"repair-pks-subkey-bug",IMPORT_REPAIR_PKS_SUBKEY_BUG,NULL},
|
||||
{"fast-import",IMPORT_FAST_IMPORT,NULL},
|
||||
{"convert-sk-to-pk",IMPORT_SK2PK,NULL},
|
||||
{"merge-only",IMPORT_MERGE_ONLY,NULL},
|
||||
{NULL,0,NULL}
|
||||
};
|
||||
|
||||
return parse_options(str,options,import_opts,noisy);
|
||||
|
@ -619,7 +619,7 @@ check_prefs(KBNODE keyblock)
|
|||
size_t fprlen=0;
|
||||
byte fpr[MAX_FINGERPRINT_LEN],*p;
|
||||
char username[(MAX_FINGERPRINT_LEN*2)+1];
|
||||
int i;
|
||||
unsigned int i;
|
||||
|
||||
p=fingerprint_from_pk(keyblock->pkt->pkt.public_key,fpr,&fprlen);
|
||||
for(i=0;i<fprlen;i++,p++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue