mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
The Agent does now call the pin entry program; however because we have
not yet implemeted secret key protection, its purpose is somewhat limited. Well, the PIN entry modules can now be tested.
This commit is contained in:
parent
ce32f6b6c8
commit
79956a08e0
8 changed files with 336 additions and 3 deletions
|
@ -64,6 +64,9 @@ enum cmd_and_opt_values
|
|||
oFlush,
|
||||
oLogFile,
|
||||
oServer,
|
||||
|
||||
oPinentryProgram,
|
||||
|
||||
aTest };
|
||||
|
||||
|
||||
|
@ -72,7 +75,6 @@ static ARGPARSE_OPTS opts[] = {
|
|||
|
||||
{ 301, NULL, 0, N_("@Options:\n ") },
|
||||
|
||||
/* FIXME: add option --server */
|
||||
{ oServer, "server", 0, N_("run in server mode") },
|
||||
{ oVerbose, "verbose", 0, N_("verbose") },
|
||||
{ oQuiet, "quiet", 0, N_("be somewhat more quiet") },
|
||||
|
@ -87,6 +89,10 @@ static ARGPARSE_OPTS opts[] = {
|
|||
{ oLogFile, "log-file" ,2, N_("use a log file for the server")},
|
||||
{ oShutdown, "shutdown" ,0, N_("shutdown the agent")},
|
||||
{ oFlush , "flush" ,0, N_("flush the cache")},
|
||||
|
||||
{ oPinentryProgram, "pinentry-program", 2 , "Path of PIN Entry program" },
|
||||
|
||||
|
||||
{0}
|
||||
};
|
||||
|
||||
|
@ -384,6 +390,8 @@ main (int argc, char **argv )
|
|||
case oSh: csh_style = 0; break;
|
||||
case oServer: server_mode = 1; break;
|
||||
|
||||
case oPinentryProgram: opt.pinentry_program = pargs.r.ret_str; break;
|
||||
|
||||
default : pargs.err = configfp? 1:2; break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue