summaryrefslogtreecommitdiffstats
path: root/sm
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2020-04-23 10:00:18 +0200
committerWerner Koch <wk@gnupg.org>2020-04-23 10:00:18 +0200
commitc03f80dc196087dbed2be7f87565228f6c067180 (patch)
tree08e1c1b60f4a3060c352ebc4c8aefa28a7174144 /sm
parentsm: Support decryption of ECDH data. (diff)
downloadgnupg2-c03f80dc196087dbed2be7f87565228f6c067180.tar.xz
gnupg2-c03f80dc196087dbed2be7f87565228f6c067180.zip
sm: Minor debug output format changes.
--
Diffstat (limited to 'sm')
-rw-r--r--sm/call-agent.c2
-rw-r--r--sm/fingerprint.c2
-rw-r--r--sm/import.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/sm/call-agent.c b/sm/call-agent.c
index 31f7206d3..5f4236b69 100644
--- a/sm/call-agent.c
+++ b/sm/call-agent.c
@@ -533,7 +533,7 @@ gpgsm_agent_pkdecrypt (ctrl_t ctrl, const char *keygrip, const char *desc,
buf = get_membuf (&data, &len);
if (!buf)
return gpg_error (GPG_ERR_ENOMEM);
- assert (len); /* (we forced Nul termination.) */
+ log_assert (len); /* (we forced Nul termination.) */
if (*buf == '(')
{
diff --git a/sm/fingerprint.c b/sm/fingerprint.c
index b7a9c3f47..ca44e1bc4 100644
--- a/sm/fingerprint.c
+++ b/sm/fingerprint.c
@@ -196,7 +196,7 @@ gpgsm_get_keygrip (ksba_cert_t cert, unsigned char *array)
return NULL;
}
if (DBG_X509)
- log_printhex (array, 20, "keygrip=");
+ log_printhex (array, 20, "keygrip:");
return array;
}
diff --git a/sm/import.c b/sm/import.c
index 4c699c2dd..3f4d192c2 100644
--- a/sm/import.c
+++ b/sm/import.c
@@ -882,7 +882,7 @@ parse_p12 (ctrl_t ctrl, ksba_reader_t reader, struct stats_s *stats)
log_error ("can't calculate keygrip\n");
goto leave;
}
- log_printhex (grip, 20, "keygrip=");
+ log_printhex (grip, 20, "keygrip:");
/* Convert to canonical encoding using a function which pads it to a
multiple of 64 bits. We need this padding for AESWRAP. */