aboutsummaryrefslogtreecommitdiffstats
path: root/tests/gpgsm/t-support.h
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2020-03-27 10:50:24 +0000
committerNIIBE Yutaka <[email protected]>2020-03-27 10:50:24 +0000
commit3658e2df65d321e334a8c96b4d252a4be20354bd (patch)
treea2d9626e4fb7fe00dad25d33d5c651ab5c0e7aa2 /tests/gpgsm/t-support.h
parentbuild: Fix library dependency. (diff)
downloadgpgme-3658e2df65d321e334a8c96b4d252a4be20354bd.tar.gz
gpgme-3658e2df65d321e334a8c96b4d252a4be20354bd.zip
tests: Add ECC key generation for tests/gpgsm.
* tests/gpgsm/t-genkey.c (check_result): New. Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'tests/gpgsm/t-support.h')
-rw-r--r--tests/gpgsm/t-support.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/gpgsm/t-support.h b/tests/gpgsm/t-support.h
index a0066599..fe65364f 100644
--- a/tests/gpgsm/t-support.h
+++ b/tests/gpgsm/t-support.h
@@ -26,6 +26,10 @@
#include <gpgme.h>
+#ifndef DIM
+#define DIM(v) (sizeof(v)/sizeof((v)[0]))
+#endif
+
#define fail_if_err(err) \
do \
{ \