mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
* call-dirmngr.c (gpgsm_dirmngr_isvalid): print status of dirmngr
call in very verbose mode. * gpgsm.c (main): Use the same error codes for STATUS_INV_RECP as with the server mode.
This commit is contained in:
parent
4b0497a2a9
commit
5faca753cb
@ -1,3 +1,11 @@
|
|||||||
|
2002-07-02 Werner Koch <wk@gnupg.org>
|
||||||
|
|
||||||
|
* call-dirmngr.c (gpgsm_dirmngr_isvalid): print status of dirmngr
|
||||||
|
call in very verbose mode.
|
||||||
|
|
||||||
|
* gpgsm.c (main): Use the same error codes for STATUS_INV_RECP as
|
||||||
|
with the server mode.
|
||||||
|
|
||||||
2002-06-29 Werner Koch <wk@gnupg.org>
|
2002-06-29 Werner Koch <wk@gnupg.org>
|
||||||
|
|
||||||
* gpgsm.c: New option --auto-issuer-key-retrieve.
|
* gpgsm.c: New option --auto-issuer-key-retrieve.
|
||||||
|
@ -304,6 +304,13 @@ gpgsm_dirmngr_isvalid (KsbaCert cert)
|
|||||||
return seterr (General_Error);
|
return seterr (General_Error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (opt.verbose > 1)
|
||||||
|
{
|
||||||
|
char *fpr = gpgsm_get_fingerprint_string (cert, GCRY_MD_SHA1);
|
||||||
|
log_info ("asking dirmngr about %s\n", fpr);
|
||||||
|
xfree (fpr);
|
||||||
|
}
|
||||||
|
|
||||||
parm.ctx = dirmngr_ctx;
|
parm.ctx = dirmngr_ctx;
|
||||||
parm.cert = cert;
|
parm.cert = cert;
|
||||||
|
|
||||||
@ -313,6 +320,8 @@ gpgsm_dirmngr_isvalid (KsbaCert cert)
|
|||||||
|
|
||||||
rc = assuan_transact (dirmngr_ctx, line, NULL, NULL,
|
rc = assuan_transact (dirmngr_ctx, line, NULL, NULL,
|
||||||
inq_certificate, &parm, NULL, NULL);
|
inq_certificate, &parm, NULL, NULL);
|
||||||
|
if (opt.verbose > 1)
|
||||||
|
log_info ("response of dirmngr: %s\n", rc? assuan_strerror (rc): "okay");
|
||||||
return map_assuan_err (rc);
|
return map_assuan_err (rc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1068,7 +1068,14 @@ main ( int argc, char **argv)
|
|||||||
sl->d, gnupg_strerror (rc));
|
sl->d, gnupg_strerror (rc));
|
||||||
gpgsm_status2 (&ctrl, STATUS_INV_RECP,
|
gpgsm_status2 (&ctrl, STATUS_INV_RECP,
|
||||||
rc == -1? "1":
|
rc == -1? "1":
|
||||||
rc == GNUPG_Ambiguous_Name? "2 ": "0 ",
|
rc == GNUPG_Ambiguous_Name? "2 ":
|
||||||
|
rc == GNUPG_Wrong_Key_Usage? "3 ":
|
||||||
|
rc == GNUPG_Certificate_Revoked? "4 ":
|
||||||
|
rc == GNUPG_Certificate_Expired? "5 ":
|
||||||
|
rc == GNUPG_No_CRL_Known? "6 ":
|
||||||
|
rc == GNUPG_CRL_Too_Old? "8 ":
|
||||||
|
rc == GNUPG_No_Policy_Match? "8 ":
|
||||||
|
"0 ",
|
||||||
sl->d, NULL);
|
sl->d, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user