diff options
author | David Shaw <[email protected]> | 2006-02-22 19:06:23 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2006-02-22 19:06:23 +0000 |
commit | 7eab1846ca966b0a15107931618b0d5fb15a1444 (patch) | |
tree | c021fba95ddb8cbf5cc94d3729a3833775d1aeb7 /g10/gpg.c | |
parent | * gpgkeys_ldap.c (make_one_attr, build_attrs, send_key): Don't allow (diff) | |
download | gnupg-7eab1846ca966b0a15107931618b0d5fb15a1444.tar.gz gnupg-7eab1846ca966b0a15107931618b0d5fb15a1444.zip |
* options.h, keydb.h, g10.c (main), getkey.c (parse_auto_key_locate):
Parse a list of key access methods. (get_pubkey_byname): Walk the list
here to try and retrieve keys we don't have locally.
Diffstat (limited to 'g10/gpg.c')
-rw-r--r-- | g10/gpg.c | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -354,14 +354,13 @@ enum cmd_and_opt_values oKeyidFormat, oExitOnStatusWriteError, oLimitCardInsertTries, - oReaderPort, octapiDriver, opcscDriver, oDisableCCID, - oRequireBacksigs, oNoRequireBacksigs, + oAutoKeyLocate, oNoop }; @@ -707,6 +706,7 @@ static ARGPARSE_OPTS opts[] = { { oRecipient, "user", 2, "@" }, { oRequireBacksigs, "require-backsigs", 0, "@"}, { oNoRequireBacksigs, "no-require-backsigs", 0, "@"}, + { oAutoKeyLocate, "auto-key-locate", 2, "@"}, {0,NULL,0,NULL} }; @@ -2645,6 +2645,17 @@ main (int argc, char **argv ) case oRequireBacksigs: opt.require_backsigs=1; break; case oNoRequireBacksigs: opt.require_backsigs=0; break; + case oAutoKeyLocate: + if(!parse_auto_key_locate(pargs.r.ret_str)) + { + if(configname) + log_error(_("%s:%d: invalid auto-key-locate list\n"), + configname,configlineno); + else + log_error(_("invalid auto-key-locate list\n")); + } + break; + case oNoop: break; default : pargs.err = configfp? 1:2; break; |