X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/8b4052ad6015aa9f54c9c824f28655f230d09d8d..2796e65c80aa5b1c1787e161fbb2cc8ac57b0fb0:/armor.c?ds=sidebyside diff --git a/armor.c b/armor.c index 6d3fc13..6bb77d8 100644 --- a/armor.c +++ b/armor.c @@ -9,6 +9,7 @@ #include #include "armor.h" +#include "config.h" #include "keystructs.h" #include "log.h" #include "onak-conf.h" @@ -320,8 +321,8 @@ int armor_openpgp_stream(int (*putchar_func)(void *ctx, size_t count, */ putchar_func(ctx, sizeof("-----BEGIN PGP PUBLIC KEY BLOCK-----\n") - 1, (unsigned char *) "-----BEGIN PGP PUBLIC KEY BLOCK-----\n"); - putchar_func(ctx, sizeof("Version: onak " VERSION "\n\n") - 1, - (unsigned char *) "Version: onak " VERSION "\n\n"); + putchar_func(ctx, sizeof("Version: onak " PACKAGE_VERSION "\n\n") - 1, + (unsigned char *) "Version: onak " PACKAGE_VERSION "\n\n"); armor_init(&armor_ctx); armor_ctx.putchar_func = putchar_func;