Home GnuPG
Diffusion GnuPG 21ef425e222d

agent: Appropriate error code for importing key with no passwd.

Description

agent: Appropriate error code for importing key with no passwd.

* agent/cvt-openpgp.c (convert_from_openpgp_main): Return
GPG_ERR_BAD_SECKEY.

When non-protected case, error at gcry_pk_testkey results
GPG_ERR_BAD_PASSPHRASE.

  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Jun 4 2021, 6:44 AM
Parents
rG9668ee097a14: gpg: Support KEYGRIP search with traditional keyring.
Branches
Unknown
Tags
Unknown