gnupg/agent
Werner Koch 7c45a69eb9
agent: New option --check-sym-passphrase-pattern.
* agent/gpg-agent.c (oCheckSymPassphrasePattern): New.
(opts): Add --check-sym-passphrase-pattern.
(parse_rereadable_options): Set option.
(main): Return option info.
* tools/gpgconf-comp.c: Add new option.
* agent/agent.h (opt): Add var check_sym_passphrase_pattern.
(struct pin_entry_info_s): Add var constraints_flags.
(CHECK_CONSTRAINTS_NOT_EMPTY): New to replace a hardwired 1.
(CHECK_CONSTRAINTS_NEW_SYMKEY): New.
* agent/genkey.c (check_passphrase_pattern): Rename to ...
(do_check_passphrase_pattern): this to make code reading
easier. Handle the --check-sym-passphrase-pattern option.
(check_passphrase_constraints): Replace arg no_empty by a generic
flags arg.  Also handle --check-sym-passphrase-pattern here.
* agent/command.c (cmd_get_passphrase): In --newsymkey mode pass
CHECK_CONSTRAINTS_NEW_SYMKEY flag.
* agent/call-pinentry.c (struct entry_parm_s): Add constraints_flags.
(struct inq_cb_parm_s): New.
(inq_cb): Use new struct for parameter passing.  Pass flags to teh
constraints checking.
(do_getpin): Pass constraints flag down.
(agent_askpin): Take constrainst flag from the supplied pinentry
struct.
--

Requirements for a passphrase to protect a private key and for a
passphrase used for symmetric encryption are different.  Thus a
the use of a different pattern file will be useful.  Note that a
pattern file can be used to replace the other passphrase constraints
options and thus we don't need to duplicate them for symmetric
encryption.

GnuPG-bug-id: 5517
Signed-off-by: Werner Koch <wk@gnupg.org>
2021-08-13 13:42:31 +02:00
..
ChangeLog-2011 Fix typos 2015-10-28 10:20:17 +01:00
Makefile.am agent,kbx: Add LIBASSUAN_CLFAGS. 2021-04-13 13:54:14 +09:00
agent.h agent: New option --check-sym-passphrase-pattern. 2021-08-13 13:42:31 +02:00
all-tests.scm tests: Make it possible to run all tests using our infrastructure. 2017-05-11 18:12:37 +02:00
cache.c agent: Fix SEGV when debuging for cache enabled. 2020-10-09 13:57:29 +09:00
call-daemon.c agent: Fix memory leaks 2021-05-20 14:28:49 +02:00
call-pinentry.c agent: New option --check-sym-passphrase-pattern. 2021-08-13 13:42:31 +02:00
call-scd.c agent: Fix calling handle_pincache_put. 2021-05-28 13:43:59 +09:00
call-tpm2d.c agent: Add new shadow key type and functions to call tpm2daemon 2021-03-10 13:23:05 +01:00
command-ssh.c A few minor code cleanups and typo fixes. 2021-05-11 09:06:34 +02:00
command.c agent: New option --check-sym-passphrase-pattern. 2021-08-13 13:42:31 +02:00
cvt-openpgp.c agent: Fix importing protected secret key. 2021-06-09 10:57:52 +09:00
cvt-openpgp.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
divert-scd.c agent: Fix YK s/n and prettify the request card prompt for Yubikeys 2020-11-26 15:56:37 +01:00
divert-tpm2.c gpg: Add new command keytotpm to convert a private key to TPM format 2021-03-10 13:34:18 +01:00
findkey.c agent: Simplify a function. 2021-03-18 09:53:09 +01:00
genkey.c agent: New option --check-sym-passphrase-pattern. 2021-08-13 13:42:31 +02:00
gpg-agent-w32info.rc w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
gpg-agent.c agent: New option --check-sym-passphrase-pattern. 2021-08-13 13:42:31 +02:00
keyformat.txt agent: Silence error messages for READKEY --card 2021-04-21 21:00:28 +02:00
learncard.c agent: Allow signing with card key even without a stub key. 2020-02-13 11:45:41 +01:00
pkdecrypt.c agent: Add new shadow key type and functions to call tpm2daemon 2021-03-10 13:23:05 +01:00
pksign.c agent: Add debug output for failed RSA signature verification 2021-03-26 14:30:58 +01:00
preset-passphrase.c Use gpgrt's new option parser for the tools. 2020-02-21 20:28:47 +01:00
protect-tool.c agent: Avoid memory leaks in error code paths. 2021-05-20 13:38:07 +02:00
protect.c agent: Fix regression in agent_get_shadow_info_type. 2021-06-25 20:23:01 +02:00
sexp-secret.c gpg,agent: Support Ed448 signing. 2020-06-24 10:05:03 +09:00
t-protect.c build: Always use EXTERN_UNLESS_MAIN_MODULE pattern. 2020-02-10 16:50:47 +01:00
trans.c agent: Replace most assert by log_assert. 2019-05-14 10:31:46 +02:00
trustlist.c Replace all calls to access by gnupg_access 2020-10-20 12:15:55 +02:00
w32main.c Spelling cleanup. 2020-02-18 18:07:46 -05:00
w32main.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00