mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpgsm: Re-introduce the bad passphrase hint for pkcs#12.
* sm/minip12.c (parse_bag_encrypted_data): Set the badpass flag. (parse_shrouded_key_bag): Ditto. --
This commit is contained in:
parent
6d3b52a94b
commit
697d54ceca
1 changed files with 2 additions and 0 deletions
|
@ -1662,6 +1662,7 @@ parse_bag_encrypted_data (struct p12_parse_ctx_s *ctx, struct tlv_ctx_s *tlv)
|
|||
if (!datalen)
|
||||
{
|
||||
err = gpg_error (GPG_ERR_DECRYPT_FAILED);
|
||||
ctx->badpass = 1; /* This is the most likley reason. */
|
||||
goto bailout;
|
||||
}
|
||||
|
||||
|
@ -2187,6 +2188,7 @@ parse_shrouded_key_bag (struct p12_parse_ctx_s *ctx, struct tlv_ctx_s *tlv)
|
|||
if (!datalen)
|
||||
{
|
||||
err = gpg_error (GPG_ERR_DECRYPT_FAILED);
|
||||
ctx->badpass = 1;
|
||||
goto bailout;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue