summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2011-05-13 00:05:37 +0000
committerDamien Miller <djm@cvs.openbsd.org>2011-05-13 00:05:37 +0000
commit4954eed674e21369edc353782d4b7d5d1dd60af9 (patch)
tree060e409606d91612a004ae4f2b52df8b6abbdd66 /usr.bin
parent01ebc3d1b3fabf9b92630cc5768886965635c5fc (diff)
warn on unexpected key type in key_parse_private_type()
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/authfile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ssh/authfile.c b/usr.bin/ssh/authfile.c
index 116c680338a..be7efd4d5a4 100644
--- a/usr.bin/ssh/authfile.c
+++ b/usr.bin/ssh/authfile.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: authfile.c,v 1.89 2011/05/10 05:46:46 djm Exp $ */
+/* $OpenBSD: authfile.c,v 1.90 2011/05/13 00:05:36 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -627,6 +627,7 @@ key_parse_private_type(Buffer *blob, int type, const char *passphrase,
case KEY_UNSPEC:
return key_parse_private_pem(blob, type, passphrase, commentp);
default:
+ error("%s: cannot parse key type %d", __func__, type);
break;
}
return NULL;