X-Git-Url: http://the.earth.li/gitweb/?p=onak.git;a=blobdiff_plain;f=armor.c;h=1341950c77af48152e1f7c8189c0c66d03217e1f;hp=595c4452480b6b1e0df5769f9b90efcbb59a192f;hb=de18b56efecadc4b5d2473904828db9c08cd2162;hpb=6df51fef2960f533a741fb7290867387ed3fbba5 diff --git a/armor.c b/armor.c index 595c445..1341950 100644 --- a/armor.c +++ b/armor.c @@ -19,10 +19,11 @@ #include +#include "build-config.h" + #include "armor.h" #include "keystructs.h" #include "parsekey.h" -#include "version.h" /** * @brief Line length we'll use for armored output @@ -329,11 +330,9 @@ int armor_openpgp_stream(int (*putchar_func)(void *ctx, size_t count, /* * Print armor header */ - 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 " ONAK_VERSION "\n\n") - 1, - (unsigned char *) "Version: onak " ONAK_VERSION "\n\n"); - + putchar_func(ctx, sizeof("-----BEGIN PGP PUBLIC KEY BLOCK-----\n\n") - 1, + (unsigned char *) "-----BEGIN PGP PUBLIC KEY BLOCK-----\n\n"); + armor_init(&armor_ctx); armor_ctx.putchar_func = putchar_func; armor_ctx.ctx = ctx;