diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2020-03-06 18:15:05 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2020-03-06 18:15:05 +0000 |
commit | a214362346cfbe45b6ffe542157915c183992c67 (patch) | |
tree | a3b7c65759efee2a93a32925bac37a5e8df0b2b8 /usr.bin/ssh | |
parent | d1fd143a0e823979f8a25a1c55d415e26277af73 (diff) |
exit if ssh_krl_revoke_key_sha256 fails; ok djm
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r-- | usr.bin/ssh/ssh-keygen.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/ssh/ssh-keygen.c b/usr.bin/ssh/ssh-keygen.c index 968b24143c6..46a2d5f5d1e 100644 --- a/usr.bin/ssh/ssh-keygen.c +++ b/usr.bin/ssh/ssh-keygen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-keygen.c,v 1.400 2020/02/28 01:07:28 djm Exp $ */ +/* $OpenBSD: ssh-keygen.c,v 1.401 2020/03/06 18:15:04 markus Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -2300,6 +2300,9 @@ update_krl_from_file(struct passwd *pw, const char *file, int wild_ca, cp = cp + strspn(cp, " \t"); hash_to_blob(cp, &blob, &blen, file, lnum); r = ssh_krl_revoke_key_sha256(krl, blob, blen); + if (r != 0) + fatal("%s: revoke key failed: %s", + __func__, ssh_err(r)); } else { if (strncasecmp(cp, "key:", 4) == 0) { cp += 4; |