upstream commit

fix sshkey_certify() return value for unsupported key types;
 ok markus@ deraadt@
This commit is contained in:
djm@openbsd.org 2015-03-06 01:40:56 +00:00 committed by Damien Miller
parent be8f658e55
commit 55e5bdeb51

View File

@ -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 */