X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/blobdiff_plain/43806eefdf9d9400425ff74ec25ec461b09dc0ef..83f3121942546e1f5485ce3fc503e2d2d432a991:/catacomb.c diff --git a/catacomb.c b/catacomb.c index d7b3dc7..edb0c4a 100644 --- a/catacomb.c +++ b/catacomb.c @@ -31,7 +31,8 @@ /*----- Main code ---------------------------------------------------------*/ static const struct nameval consts[] = { -#define C(x) { #x, x } +#define CF(f, x) { #x, f, x } +#define C(x) { #x, 0, x } C(FTY_PRIME), C(FTY_BINARY), C(PGEN_PASS), C(PGEN_FAIL), C(PGEN_BEGIN), C(PGEN_TRY), C(PGEN_DONE), C(PGEN_ABORT), @@ -51,10 +52,11 @@ static const struct nameval consts[] = { C(ED25519_KEYSZ), C(ED25519_PUBSZ), C(ED25519_SIGSZ), C(ED25519_MAXPERSOSZ), C(ED448_KEYSZ), C(ED448_PUBSZ), C(ED448_SIGSZ), C(ED448_MAXPERSOSZ), -#define ENTRY(tag, val, str) C(KERR_##tag), +#define ENTRY(tag, val, str) CF(CF_SIGNED, KERR_##tag), KEY_ERRORS(ENTRY) #undef ENTRY #undef C +#undef CF { 0 } };