mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-17 15:44:34 +02:00
(gpgsm_decrypt): Return GPG_ERR_NO_DATA if it is not a
encrypted message.
This commit is contained in:
parent
bd2d99c4e7
commit
389fa08de6
@ -1,3 +1,8 @@
|
|||||||
|
2004-04-08 Werner Koch <wk@gnupg.org>
|
||||||
|
|
||||||
|
* decrypt.c (gpgsm_decrypt): Return GPG_ERR_NO_DATA if it is not a
|
||||||
|
encrypted message.
|
||||||
|
|
||||||
2004-04-07 Werner Koch <wk@gnupg.org>
|
2004-04-07 Werner Koch <wk@gnupg.org>
|
||||||
|
|
||||||
* gpgsm.c: New option --force-crl-refresh.
|
* gpgsm.c: New option --force-crl-refresh.
|
||||||
|
@ -333,6 +333,11 @@ gpgsm_decrypt (CTRL ctrl, int in_fd, FILE *out_fp)
|
|||||||
numbuf, algoid?algoid:"?", NULL);
|
numbuf, algoid?algoid:"?", NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* If it seems that this is not an ecrypted message we
|
||||||
|
return a more sensible error code. */
|
||||||
|
if (!algoid)
|
||||||
|
rc = gpg_error (GPG_ERR_NO_DATA);
|
||||||
|
|
||||||
goto leave;
|
goto leave;
|
||||||
}
|
}
|
||||||
dfparm.algo = algo;
|
dfparm.algo = algo;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user