diff options
| author | Werner Koch <[email protected]> | 2026-05-17 12:59:42 +0200 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2026-05-17 12:59:42 +0200 |
| commit | 8081d34e5f620a614f58617700f9b473392e6478 (patch) | |
| tree | 6322bb0a23a303ccc71e6c313856ab5dcca654ca /tests/run-support.h | |
| parent | engine:gpgconf: Increase the buffer size. (diff) | |
| download | gpgme-8081d34e5f620a614f58617700f9b473392e6478.tar.gz gpgme-8081d34e5f620a614f58617700f9b473392e6478.zip | |
Support setting attributes for CMS signatures.
* src/gpgme.h.in (GPGME_SIG_NOTATION_UNPROTECTED): New.
(struct _gpgme_sig_notation): Add field 'unprotected'.
* src/sig-notation.c (sig_notation_set_flags): Set flag.
* src/engine-gpgsm.c (gpgsm_sign): Implement setting of notations.
* tests/run-support.h: Add conversion macros.
* tests/run-sign.c (struct mystringlist_s): New.
(xmalloc): New.
(xstrtokenize): New.
(print_result): Add arg fp and adjust callers.
(main): Add options --binary and --notation.
Diffstat (limited to 'tests/run-support.h')
| -rw-r--r-- | tests/run-support.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/run-support.h b/tests/run-support.h index 6471e2b9..220835d2 100644 --- a/tests/run-support.h +++ b/tests/run-support.h @@ -59,6 +59,10 @@ } \ while (0) +#define atoi_1(p) (*(p) - '0' ) +#define atoi_2(p) ((atoi_1(p) * 10) + atoi_1((p)+1)) +#define atoi_4(p) ((atoi_2(p) * 100) + atoi_2((p)+2)) +#define spacep(p) (*(p) == ' ' || *(p) == '\t') static const char * nonnull (const char *s) |
