From: Ian Jackson Date: Sat, 23 Nov 2019 23:38:58 +0000 (+0000) Subject: rsa: Strip a couple of spurious newlines from pub key messages X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=140b4e1425d1b2b39ebb64b60851c81a3e15a6d0;p=secnet.git rsa: Strip a couple of spurious newlines from pub key messages Neither cfgfatal nor slilog want a trailing newline. There are lots of this kind of problem in secnet. I'm just fixing two I noticed here, in code I touched. Signed-off-by: Ian Jackson --- diff --git a/rsa.c b/rsa.c index 3f2fbd1..b633f72 100644 --- a/rsa.c +++ b/rsa.c @@ -356,10 +356,10 @@ static struct rsapub *rsa_loadpub_core(RSAPUB_BNS(RSAPUB_LOADCORE_DEFBN) #define RSAPUB_LOADCORE_GETBN(ix,en,what) \ if (mpz_init_set_str(&st->en,en##s,10)!=0) { \ LDPUBFATAL(&en##_loc, what " \"%s\" is not a " \ - "decimal number string\n",en##s); \ + "decimal number string",en##s); \ } \ if (mpz_sizeinbase(&st->en, 256) > RSA_MAX_MODBYTES) { \ - LDPUBFATAL(&en##_loc, "implausibly large " what "\n"); \ + LDPUBFATAL(&en##_loc, "implausibly large " what); \ } RSAPUB_BNS(RSAPUB_LOADCORE_GETBN)