agent: Raise the maximum password length. Don't hard code it.
authorNeal H. Walfield <neal@g10code.com>
Mon, 24 Aug 2015 14:14:09 +0000 (16:14 +0200)
committerNeal H. Walfield <neal@g10code.com>
Mon, 24 Aug 2015 14:14:38 +0000 (16:14 +0200)
commit348a6ebb63523305ce9f47d0f3e8a9086c338fed
tree62cbe9ac5cbe9105299f2d31d01fc2778104a13b
parent3cf02192a890d04f8f558cb72d46f9bd7a378322
agent: Raise the maximum password length.  Don't hard code it.

* agent/agent.h (MAX_PASSPHRASE_LEN): Define.
* agent/command-ssh.c (ssh_identity_register): Use it instead of a
hard-coded literal.
* agent/cvt-openpgp.c (convert_from_openpgp_main): Likewise.
* agent/findkey.c (unprotect): Likewise.
* agent/genkey.c (agent_ask_new_passphrase): Likewise.

--
Signed-off-by: Neal H. Walfield <neal@g10code.com>.
GnuPG-bug-id: 2038
agent/agent.h
agent/command-ssh.c
agent/cvt-openpgp.c
agent/findkey.c
agent/genkey.c