From 3886942162fd8193d8a804a685a3f96a65b9712c Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Wed, 21 Aug 2019 18:55:32 +0100 Subject: [PATCH] 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. --- armor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2