Check for truncated passphrase during inquire.
commit11cc55cea5e19223cb293b7b8b8f6a361a284eb8
authorBen Kibbey <bjk@luxsci.net>
Sun, 16 Aug 2015 21:16:10 +0000 (16 17:16 -0400)
committerBen Kibbey <bjk@luxsci.net>
Sun, 16 Aug 2015 21:16:10 +0000 (16 17:16 -0400)
tree6b56dc52fce5c6b63505b6f65ff2e8682b8e074f
parenta1756f0b4365b4071419ba6638f6855671c0b8f9
Check for truncated passphrase during inquire.

Return GPG_ERR_INV_PASSPHRASE when the inquired passphrase size does not
match the length. Gpg will truncate a passphrase at the first nil byte
which may be bad for generated key files containing a nil byte at a
position other than the end of the string.
src/libpwmd.c