diff options
author | Werner Koch <wk@gnupg.org> | 1999-03-11 16:42:06 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 1999-03-11 16:42:06 +0100 |
commit | e95a22a6d214edbb604ffe3292ad11ee096bf9a0 (patch) | |
tree | db513c500ee4997d2645cbe71dbda7701e9f213a /g10/g10.c | |
parent | See ChangeLog: Wed Mar 10 11:26:18 CET 1999 Werner Koch (diff) | |
download | gnupg2-e95a22a6d214edbb604ffe3292ad11ee096bf9a0.tar.xz gnupg2-e95a22a6d214edbb604ffe3292ad11ee096bf9a0.zip |
See ChangeLog: Thu Mar 11 16:39:46 CET 1999 Werner Koch
Diffstat (limited to 'g10/g10.c')
-rw-r--r-- | g10/g10.c | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -35,10 +35,10 @@ #include "main.h" #include "options.h" #include "keydb.h" +#include "trustdb.h" #include "mpi.h" #include "cipher.h" #include "filter.h" -#include "trustdb.h" #include "ttyio.h" #include "i18n.h" #include "status.h" @@ -111,7 +111,6 @@ enum cmd_and_opt_values { aNull = 0, oKeyring, oSecretKeyring, oDefaultKey, - oTrustedKey, oOptions, oDebug, oDebugAll, @@ -250,7 +249,6 @@ static ARGPARSE_OPTS opts[] = { { oCompletesNeeded, "completes-needed", 1, N_("(default is 1)")}, { oMarginalsNeeded, "marginals-needed", 1, N_("(default is 3)")}, { oMaxCertDepth, "max-cert-depth", 1, "@" }, - { oTrustedKey, "trusted-key", 2, N_("|KEYID|ulimately trust this key")}, { oLoadExtension, "load-extension" ,2, N_("|FILE|load extension module FILE")}, { oRFC1991, "rfc1991", 0, N_("emulate the mode described in RFC1991")}, { oS2KMode, "s2k-mode", 1, N_("|N|use passphrase mode N")}, @@ -730,7 +728,6 @@ main( int argc, char **argv ) case oMaxCertDepth: opt.max_cert_depth = pargs.r.ret_int; break; case oTrustDBName: trustdb_name = pargs.r.ret_str; break; case oDefaultKey: opt.def_secret_key = pargs.r.ret_str; break; - case oTrustedKey: register_trusted_key( pargs.r.ret_str ); break; case oNoOptions: break; /* no-options */ case oHomedir: opt.homedir = pargs.r.ret_str; break; case oNoBatch: opt.batch = 0; break; @@ -938,11 +935,11 @@ main( int argc, char **argv ) case aListSecretKeys: case aCheckKeys: if( opt.with_colons ) /* need this to list the trust */ - rc = init_trustdb(1, trustdb_name ); + rc = setup_trustdb(1, trustdb_name ); break; - case aExportOwnerTrust: rc = init_trustdb( 0, trustdb_name ); break; - case aListTrustDB: rc = init_trustdb( argc? 1:0, trustdb_name ); break; - default: rc = init_trustdb(1, trustdb_name ); break; + case aExportOwnerTrust: rc = setup_trustdb( 0, trustdb_name ); break; + case aListTrustDB: rc = setup_trustdb( argc? 1:0, trustdb_name ); break; + default: rc = setup_trustdb(1, trustdb_name ); break; } if( rc ) log_error(_("failed to initialize the TrustDB: %s\n"), g10_errstr(rc)); |