From: Jonathan McDowell Date: Wed, 21 Aug 2019 17:55:32 +0000 (+0100) Subject: Add blank line before armoured PGP data X-Git-Tag: onak-0.6.0~24 X-Git-Url: https://the.earth.li/gitweb/?p=onak.git;a=commitdiff_plain;h=3886942162fd8193d8a804a685a3f96a65b9712c Add blank line before armoured PGP data When removing the Version: header it's still necessary to have a blank line before the actual armoured data. --- diff --git a/armor.c b/armor.c index ab10f41..1341950 100644 --- a/armor.c +++ b/armor.c @@ -330,8 +330,8 @@ 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("-----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;