mirror of
git://anongit.mindrot.org/openssh.git
synced 2024-11-28 16:23:23 +08:00
upstream commit
fix sshkey_certify() return value for unsupported key types; ok markus@ deraadt@
This commit is contained in:
parent
be8f658e55
commit
55e5bdeb51
3
sshkey.c
3
sshkey.c
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: sshkey.c,v 1.14 2015/01/26 02:59:11 djm Exp $ */
|
||||
/* $OpenBSD: sshkey.c,v 1.15 2015/03/06 01:40:56 djm Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2000, 2001 Markus Friedl. All rights reserved.
|
||||
* Copyright (c) 2008 Alexander von Gernler. All rights reserved.
|
||||
@ -2464,6 +2464,7 @@ sshkey_certify(struct sshkey *k, struct sshkey *ca)
|
||||
break;
|
||||
default:
|
||||
ret = SSH_ERR_INVALID_ARGUMENT;
|
||||
goto out;
|
||||
}
|
||||
|
||||
/* -v01 certs have a serial number next */
|
||||
|
Loading…
Reference in New Issue
Block a user