mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-02 12:01:32 +01:00
sm: Replace some debug message by log_error or log_info
-- Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
f05a32e5c9
commit
a6d2f31337
17
sm/decrypt.c
17
sm/decrypt.c
@ -303,7 +303,7 @@ gpgsm_decrypt (ctrl_t ctrl, int in_fd, estream_t out_fp)
|
|||||||
rc = ksba_cms_set_reader_writer (cms, reader, writer);
|
rc = ksba_cms_set_reader_writer (cms, reader, writer);
|
||||||
if (rc)
|
if (rc)
|
||||||
{
|
{
|
||||||
log_debug ("ksba_cms_set_reader_writer failed: %s\n",
|
log_error ("ksba_cms_set_reader_writer failed: %s\n",
|
||||||
gpg_strerror (rc));
|
gpg_strerror (rc));
|
||||||
goto leave;
|
goto leave;
|
||||||
}
|
}
|
||||||
@ -316,7 +316,7 @@ gpgsm_decrypt (ctrl_t ctrl, int in_fd, estream_t out_fp)
|
|||||||
rc = ksba_cms_parse (cms, &stopreason);
|
rc = ksba_cms_parse (cms, &stopreason);
|
||||||
if (rc)
|
if (rc)
|
||||||
{
|
{
|
||||||
log_debug ("ksba_cms_parse failed: %s\n", gpg_strerror (rc));
|
log_error ("ksba_cms_parse failed: %s\n", gpg_strerror (rc));
|
||||||
goto leave;
|
goto leave;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -412,11 +412,14 @@ gpgsm_decrypt (ctrl_t ctrl, int in_fd, estream_t out_fp)
|
|||||||
{
|
{
|
||||||
ksba_cert_t cert = NULL;
|
ksba_cert_t cert = NULL;
|
||||||
|
|
||||||
log_debug ("recp %d - issuer: '%s'\n",
|
if (opt.verbose)
|
||||||
recp, issuer? issuer:"[NONE]");
|
{
|
||||||
log_debug ("recp %d - serial: ", recp);
|
log_info ("recp %d - issuer: '%s'\n",
|
||||||
gpgsm_dump_serial (serial);
|
recp, issuer? issuer:"[NONE]");
|
||||||
log_printf ("\n");
|
log_info ("recp %d - serial: ", recp);
|
||||||
|
gpgsm_dump_serial (serial);
|
||||||
|
log_printf ("\n");
|
||||||
|
}
|
||||||
|
|
||||||
if (ctrl->audit)
|
if (ctrl->audit)
|
||||||
{
|
{
|
||||||
|
@ -255,7 +255,6 @@ add_certificate_list (ctrl_t ctrl, ksba_cms_t cms, ksba_cert_t cert)
|
|||||||
ksba_cert_ref (cert);
|
ksba_cert_ref (cert);
|
||||||
|
|
||||||
n = ctrl->include_certs;
|
n = ctrl->include_certs;
|
||||||
log_debug ("adding certificates at level %d\n", n);
|
|
||||||
if (n == -2)
|
if (n == -2)
|
||||||
{
|
{
|
||||||
not_root = 1;
|
not_root = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user