1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-07 23:27:48 +02:00
gnupg/agent
Neal H. Walfield 2778c6f8f4 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 <neal@g10code.com>

Based on a patch provided by Watson Yuuma Sato <yuuma.sato@gmail.com>
in issue 2018.
2015-06-29 15:53:49 +02:00
..
agent.h Show passphrase constraints errors as password prompt errors 2015-06-29 15:53:49 +02:00
cache.c gpg: Improve passphrase caching. 2014-09-17 15:12:08 +02:00
call-pinentry.c Show passphrase constraints errors as password prompt errors 2015-06-29 15:53:49 +02:00
call-scd.c Rename DBG_ASSUAN to DBG_IPC and add separate DBG_EXTPROG. 2015-04-06 13:42:17 +02:00
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
command-ssh.c agent: Send the new SETKEYINFO command to the Pinentry. 2015-04-14 18:41:05 +02:00
command.c Show passphrase constraints errors as password prompt errors 2015-06-29 15:53:49 +02:00
cvt-openpgp.c agent: Send the new SETKEYINFO command to the Pinentry. 2015-04-14 18:41:05 +02:00
cvt-openpgp.h Implement unattended OpenPGP secret key import. 2013-05-22 10:14:57 +02:00
divert-scd.c agent: Send the new SETKEYINFO command to the Pinentry. 2015-04-14 18:41:05 +02:00
findkey.c Typo fixes 2015-05-08 08:55:57 +02:00
genkey.c Show passphrase constraints errors as password prompt errors 2015-06-29 15:53:49 +02:00
gpg-agent-w32info.rc w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
gpg-agent.c Don't raise max-cache-ttl to default-cache-ttl. 2015-06-29 15:53:47 +02:00
keyformat.txt gpg: Finish experimental support for Ed25519. 2014-05-07 13:27:43 +02:00
learncard.c agent: Add --force option for LEARN. 2015-04-03 17:33:11 +09:00
Makefile.am Remove obsolete directories from AM_CPPFLAGS. 2015-04-10 13:11:59 +02:00
pkdecrypt.c agent: Replace some sprintf. 2014-12-02 14:13:53 +01:00
pksign.c scd: fix for 64-bit arch. 2015-03-09 11:00:03 +09:00
preset-passphrase.c common: Remove two JNLIB_ macros (jnlib merge). 2015-04-24 16:10:15 +02:00
protect-tool.c common: Remove two JNLIB_ macros (jnlib merge). 2015-04-24 16:10:15 +02:00
protect.c agent: Fix use of imported but unprotected openpgp keys. 2015-01-29 16:26:07 +01:00
t-protect.c Implement unattended OpenPGP secret key import. 2013-05-22 10:14:57 +02:00
trans.c Changed to GPLv3. 2007-07-04 19:49:40 +00:00
trustlist.c agent: Make --allow-mark-trusted the default. 2014-03-07 09:48:26 +01:00
w32main.c Make use of the *_NAME etc macros. 2013-11-18 14:09:47 +01:00
w32main.h Changed to GPLv3. 2007-07-04 19:49:40 +00:00