aboutsummaryrefslogtreecommitdiffstats
path: root/sm/call-agent.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2020-07-08 12:40:34 +0000
committerWerner Koch <[email protected]>2020-07-08 12:40:34 +0000
commit9ee975d588ee99550917e3d459dd6f79057f5c30 (patch)
treeaadef2bf08d7333123ec0372cd7aa85251f2dcb1 /sm/call-agent.c
parentgpg: Use integrated passphrase repeat entry also for -c. (diff)
downloadgnupg-9ee975d588ee99550917e3d459dd6f79057f5c30.tar.gz
gnupg-9ee975d588ee99550917e3d459dd6f79057f5c30.zip
gpgsm: Replace all assert calls by log_assert.
-- Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'sm/call-agent.c')
-rw-r--r--sm/call-agent.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sm/call-agent.c b/sm/call-agent.c
index ec8020517..9287091bc 100644
--- a/sm/call-agent.c
+++ b/sm/call-agent.c
@@ -25,7 +25,6 @@
#include <errno.h>
#include <unistd.h>
#include <time.h>
-#include <assert.h>
#ifdef HAVE_LOCALE_H
#include <locale.h>
#endif
@@ -480,7 +479,7 @@ gpgsm_scd_pksign (ctrl_t ctrl, const char *keyid, const char *desc,
if (rc)
return rc;
- assert (gcry_sexp_canon_len (*r_buf, *r_buflen, NULL, NULL));
+ log_assert (gcry_sexp_canon_len (*r_buf, *r_buflen, NULL, NULL));
return 0;
}
@@ -542,7 +541,7 @@ gpgsm_agent_pkdecrypt (ctrl_t ctrl, const char *keygrip, const char *desc,
if (rc)
return rc;
- assert ( DIM(line) >= 50 );
+ log_assert ( DIM(line) >= 50 );
snprintf (line, DIM(line), "SETKEY %s", keygrip);
rc = assuan_transact (agent_ctx, line, NULL, NULL, NULL, NULL, NULL, NULL);
if (rc)