diff options
author | 2020-03-06 18:15:04 +0000 | |
---|---|---|
committer | 2020-03-06 18:15:04 +0000 | |
commit | d43224b985e6b4b38dd76f59a8080aa6ad520a72 (patch) | |
tree | 0058f29faa609c0c206ccb2ecaad3bef9741da6d /usr.bin/ssh/ssh-keygen.c | |
parent | pkcs11_register_provider: return < 0 on error; ok djm (diff) | |
download | wireguard-openbsd-d43224b985e6b4b38dd76f59a8080aa6ad520a72.tar.xz wireguard-openbsd-d43224b985e6b4b38dd76f59a8080aa6ad520a72.zip |
exit if ssh_krl_revoke_key_sha256 fails; ok djm
Diffstat (limited to 'usr.bin/ssh/ssh-keygen.c')
-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; |