From: Felix Fietkau Date: Thu, 17 Dec 2015 16:06:27 +0000 (+0100) Subject: fix accidental swapping of public vs private key comment X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3f3aeceb15f9056cc4eb2f7e610d1cb067337c24;p=oweals%2Fusign.git fix accidental swapping of public vs private key comment Signed-off-by: Felix Fietkau --- diff --git a/main.c b/main.c index 869ee08..2203d01 100644 --- a/main.c +++ b/main.c @@ -312,7 +312,7 @@ static int generate(void) if (b64_encode(&skey, sizeof(skey), buf, sizeof(buf)) < 0) return 1; - write_file(seckeyfile, skey.fingerprint, "public key", buf); + write_file(seckeyfile, skey.fingerprint, "private key", buf); memcpy(pkey.fingerprint, skey.fingerprint, sizeof(pkey.fingerprint)); memcpy(pkey.pubkey, skey.seckey + 32, sizeof(pkey.pubkey)); @@ -320,7 +320,7 @@ static int generate(void) if (b64_encode(&pkey, sizeof(pkey), buf, sizeof(buf)) < 0) return 1; - write_file(pubkeyfile, pkey.fingerprint, "private key", buf); + write_file(pubkeyfile, pkey.fingerprint, "public key", buf); return 0; }