X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=armor.c;h=ab10f41dbc1e0cd6a49edca3c7ca0ab6a141a06c;hb=4b6032dbfb20e041043cfa0b6b84145f49a98a11;hp=595c4452480b6b1e0df5769f9b90efcbb59a192f;hpb=6df51fef2960f533a741fb7290867387ed3fbba5;p=onak.git diff --git a/armor.c b/armor.c index 595c445..ab10f41 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 @@ -331,9 +332,7 @@ 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 " ONAK_VERSION "\n\n") - 1, - (unsigned char *) "Version: onak " ONAK_VERSION "\n\n"); - + armor_init(&armor_ctx); armor_ctx.putchar_func = putchar_func; armor_ctx.ctx = ctx;