aboutsummaryrefslogtreecommitdiffstats
path: root/agent/command-ssh.c
diff options
context:
space:
mode:
authorNeal H. Walfield <[email protected]>2015-06-18 03:10:47 +0000
committerNeal H. Walfield <[email protected]>2015-06-29 13:53:49 +0000
commit2778c6f8f40d73272075ce04c07097f65c94054e (patch)
treed0e3cc2352fbb73368f4ee371207aa1877338d06 /agent/command-ssh.c
parentImprove documentation for default-cache-ttl and default-cache-ttl-ssh. (diff)
downloadgnupg-2778c6f8f40d73272075ce04c07097f65c94054e.tar.gz
gnupg-2778c6f8f40d73272075ce04c07097f65c94054e.zip
Show passphrase constraints errors as password prompt errors
* agent/agent.h (check_passphrase_constraints): Add parameter failed_constraint and remove parameter silent. Update callers. * agent/genkey.c (check_passphrase_constraints): Add parameter failed_constraint and remove parameter silent. If FAILED_CONSTRAINT is not NULL and OPT.ENFORCE_PASSPHRASE_CONSTRAINTS is FALSE, save the error text in *FAILED_CONSTRAINT and don't call take_this_one_anyway or take_this_one_anyway2. If FAILED_CONSTRAINT is NULL, act as if SILENT was set. (agent_ask_new_passphrase): Change initial_errtext's type from a const char * to a char *. Pass it to check_passphrase_constraints. If it contains malloc's memory, free it. -- Signed-off-by: Neal H. Walfield <[email protected]> Based on a patch provided by Watson Yuuma Sato <[email protected]> in issue 2018.
Diffstat (limited to 'agent/command-ssh.c')
0 files changed, 0 insertions, 0 deletions