mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
gpgsm: Print the revocation time also with --verify.
* sm/certchain.c (is_cert_still_valid): Print revocation reason.
This commit is contained in:
parent
1c2bdd80b1
commit
58819c024a
@ -1246,6 +1246,21 @@ is_cert_still_valid (ctrl_t ctrl, int chain_model, int lm, estream_t fp,
|
||||
switch (gpg_err_code (err))
|
||||
{
|
||||
case GPG_ERR_CERT_REVOKED:
|
||||
if (!check_isotime (ctrl->revoked_at))
|
||||
{
|
||||
char *tmpstr;
|
||||
const unsigned char *t = ctrl->revoked_at;
|
||||
|
||||
tmpstr = xtryasprintf ("%.4s-%.2s-%.2s %.2s:%.2s:%s (%s)",
|
||||
t, t+4, t+6, t+9, t+11, t+13,
|
||||
ctrl->revocation_reason?
|
||||
ctrl->revocation_reason : "");
|
||||
|
||||
do_list (1, lm, fp, "%s: %s",
|
||||
_("certificate has been revoked"), tmpstr);
|
||||
xfree (tmpstr);
|
||||
}
|
||||
else
|
||||
do_list (1, lm, fp, _("certificate has been revoked"));
|
||||
*any_revoked = 1;
|
||||
/* Store that in the keybox so that key listings are able to
|
||||
|
Loading…
x
Reference in New Issue
Block a user