diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2019-01-17 05:40:11 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2019-01-17 05:40:11 +0000 |
commit | 40a1495930d437f23ef3e17fb7f83da7158315bc (patch) | |
tree | 09d0b3ddabf47b0d715ef6ad900be97183f2a8a8 | |
parent | bb1e776aeb51e5f7bca8d32bf51a00421a390e38 (diff) |
change an error message to be less misleading.
a secret key can have a valid base64 encoding but still won't parse as a
public key.
request from tb
-rw-r--r-- | usr.bin/signify/signify.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/signify/signify.c b/usr.bin/signify/signify.c index 7295f6ffae7..8cdd20ce3ba 100644 --- a/usr.bin/signify/signify.c +++ b/usr.bin/signify/signify.c @@ -1,4 +1,4 @@ -/* $OpenBSD: signify.c,v 1.129 2019/01/17 05:31:28 tedu Exp $ */ +/* $OpenBSD: signify.c,v 1.130 2019/01/17 05:40:10 tedu Exp $ */ /* * Copyright (c) 2013 Ted Unangst <tedu@openbsd.org> * @@ -142,7 +142,7 @@ parseb64file(const char *filename, char *b64, void *buf, size_t buflen, errx(1, "missing new line after base64 in %s", filename); *b64end = '\0'; if (b64_pton(commentend + 1, buf, buflen) != buflen) - errx(1, "invalid base64 encoding in %s", filename); + errx(1, "unable to parse %s", filename); if (memcmp(buf, PKALG, 2) != 0) errx(1, "unsupported file %s", filename); return b64end - b64 + 1; |