summaryrefslogtreecommitdiff
path: root/g10/sign.c
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-02-09 16:00:09 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-02-09 16:00:09 +0900
commit8bffc2850be3e430e7f6faec136d31c6c815f93f (patch)
treeb703788e194f295f6d48fa9bbfc8622546a92650 /g10/sign.c
parent158ef6d574d6bd975c94e86476cb1631e775a40c (diff)
downloadgpg2-8bffc2850be3e430e7f6faec136d31c6c815f93f.tar.gz
gpg2-8bffc2850be3e430e7f6faec136d31c6c815f93f.tar.bz2
gpg2-8bffc2850be3e430e7f6faec136d31c6c815f93f.zip
Imported Upstream version 2.1.12upstream/2.1.12
Diffstat (limited to 'g10/sign.c')
-rw-r--r--g10/sign.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/g10/sign.c b/g10/sign.c
index c3ae028..364634a 100644
--- a/g10/sign.c
+++ b/g10/sign.c
@@ -23,7 +23,6 @@
#include <stdlib.h>
#include <string.h>
#include <errno.h>
-#include <assert.h>
#include "gpg.h"
#include "options.h"
@@ -66,7 +65,7 @@ mk_notation_policy_etc (PKT_signature *sig,
struct notation *nd=NULL;
struct expando_args args;
- assert(sig->version>=4);
+ log_assert(sig->version>=4);
memset(&args,0,sizeof(args));
args.pk=pk;
@@ -1143,7 +1142,7 @@ clearsign_file (ctrl_t ctrl,
}
}
}
- assert(any);
+ log_assert(any);
iobuf_writestr(out, LF );
}
@@ -1377,9 +1376,9 @@ make_keysig_packet (PKT_signature **ret_sig, PKT_public_key *pk,
int sigversion;
gcry_md_hd_t md;
- assert( (sigclass >= 0x10 && sigclass <= 0x13) || sigclass == 0x1F
- || sigclass == 0x20 || sigclass == 0x18 || sigclass == 0x19
- || sigclass == 0x30 || sigclass == 0x28 );
+ log_assert ((sigclass >= 0x10 && sigclass <= 0x13) || sigclass == 0x1F
+ || sigclass == 0x20 || sigclass == 0x18 || sigclass == 0x19
+ || sigclass == 0x30 || sigclass == 0x28 );
sigversion = 4;
if (sigversion < pksk->version)