From ecffd0c9a7ec00a156443d6d8d253da09c0cf23b Mon Sep 17 00:00:00 2001 From: Ingo Klöcker Date: Wed, 5 Aug 2026 14:41:33 +0200 Subject: tests: Add test to check issuer serial number and issuer name * tests/gpgsm/Makefile.am (LDADD): Add @GPG_ERROR_LIBS@. * tests/gpgsm/t-support.h (_test, test, safe_strcmp, nonnull, have_gpgsm_version): New. * tests/gpgsm/cms-decrypt.c (nonnull): Remove. * tests/gpgsm/cms-keylist.c (nonnull): Remove. * tests/gpgsm/t-verify.c (test_opaque_without_cert): New. (check_result): Add arguments issuer_serial, issuer_name. Use safe_strcmp to compare fpr. Check issuer_serial and issuer_name. (main): Add expected issuer serial and issuer name to existing check_result calls. Add test to check S/MIME signature without embedded signing certificate. -- GnuPG-bug-id: 8369 --- tests/gpgsm/cms-decrypt.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'tests/gpgsm/cms-decrypt.c') diff --git a/tests/gpgsm/cms-decrypt.c b/tests/gpgsm/cms-decrypt.c index c3426bb2..aa8fd709 100644 --- a/tests/gpgsm/cms-decrypt.c +++ b/tests/gpgsm/cms-decrypt.c @@ -34,13 +34,6 @@ #include "t-support.h" -static const char * -nonnull (const char *s) -{ - return s? s :"[none]"; -} - - int main (int argc, char **argv) { -- cgit