X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/bdada0eacc11f6cfbf3256556d86282a0124ab26..1fae9e73f62b3543accd1f800d324de446b94d7b:/armor.c?ds=inline diff --git a/armor.c b/armor.c index bb0085e..a192f77 100644 --- a/armor.c +++ b/armor.c @@ -9,11 +9,11 @@ #include #include "armor.h" -#include "config.h" #include "keystructs.h" #include "log.h" #include "onak-conf.h" #include "parsekey.h" +#include "version.h" #define ARMOR_WIDTH 64 @@ -323,8 +323,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 " PACKAGE_VERSION "\n\n") - 1, - (unsigned char *) "Version: onak " PACKAGE_VERSION "\n\n"); + putchar_func(ctx, sizeof("Version: onak " ONAK_VERSION "\n\n") - 1, + (unsigned char *) "Version: onak " ONAK_VERSION "\n\n"); armor_init(&armor_ctx); armor_ctx.putchar_func = putchar_func;