summaryrefslogtreecommitdiffstats
path: root/ssherr.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2017-05-08 01:15:59 +0200
committerDamien Miller <djm@mindrot.org>2017-05-08 01:21:22 +0200
commitbd636f40911094a39c2920bf87d2ec340533c152 (patch)
tree53c4c9655827d6433a26a510f46081dfc4b72b6d /ssherr.c
parentupstream commit (diff)
downloadopenssh-bd636f40911094a39c2920bf87d2ec340533c152.tar.xz
openssh-bd636f40911094a39c2920bf87d2ec340533c152.zip
upstream commit
Refuse RSA keys <1024 bits in length. Improve reporting for keys that do not meet this requirement. ok markus@ Upstream-ID: b385e2a7b13b1484792ee681daaf79e1e203df6c
Diffstat (limited to 'ssherr.c')
-rw-r--r--ssherr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ssherr.c b/ssherr.c
index 680207063..4bd5f59cc 100644
--- a/ssherr.c
+++ b/ssherr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssherr.c,v 1.5 2015/09/13 14:39:16 tim Exp $ */
+/* $OpenBSD: ssherr.c,v 1.6 2017/05/07 23:15:59 djm Exp $ */
/*
* Copyright (c) 2011 Damien Miller
*
@@ -135,6 +135,8 @@ ssh_err(int n)
return "Connection corrupted";
case SSH_ERR_PROTOCOL_ERROR:
return "Protocol error";
+ case SSH_ERR_KEY_LENGTH:
+ return "Invalid key length";
default:
return "unknown error";
}