summaryrefslogtreecommitdiff
path: root/compat.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-03-10 17:22:20 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-03-10 17:22:20 +0000
commitd20d0f3e27884c7daf9d48d335168898e147b65b (patch)
tree01bad8837c1f9fb0cde391f48a0833feaa6c706e /compat.c
parent00261540be24b71fcd5c2b62d4ee2a7edabe081c (diff)
- deraadt@cvs.openbsd.org 2001/03/10 15:31:00
[compat.c compat.h sshconnect.c] all known netscreen ssh versions, and older versions of OSU ssh cannot handle password padding (newer OSU is fixed)
Diffstat (limited to 'compat.c')
-rw-r--r--compat.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/compat.c b/compat.c
index 38fc52605..5f0d7cd0c 100644
--- a/compat.c
+++ b/compat.c
@@ -23,7 +23,7 @@
23 */ 23 */
24 24
25#include "includes.h" 25#include "includes.h"
26RCSID("$OpenBSD: compat.c,v 1.37 2001/03/08 21:42:31 markus Exp $"); 26RCSID("$OpenBSD: compat.c,v 1.38 2001/03/10 15:31:00 deraadt Exp $");
27 27
28#ifdef HAVE_LIBPCRE 28#ifdef HAVE_LIBPCRE
29# include <pcreposix.h> 29# include <pcreposix.h>
@@ -84,13 +84,19 @@ compat_datafellows(const char *version)
84 SSH_OLD_SESSIONID|SSH_BUG_DEBUG| 84 SSH_OLD_SESSIONID|SSH_BUG_DEBUG|
85 SSH_BUG_PKSERVICE|SSH_BUG_X11FWD| 85 SSH_BUG_PKSERVICE|SSH_BUG_X11FWD|
86 SSH_BUG_PKAUTH|SSH_BUG_PKOK }, 86 SSH_BUG_PKAUTH|SSH_BUG_PKOK },
87 { "^2\\.[23]\\.0", SSH_BUG_HMAC}, 87 { "^2\\.[23]\\.0", SSH_BUG_HMAC },
88 { "^2\\.[2-9]\\.", 0 }, 88 { "^2\\.[2-9]\\.", 0 },
89 { "^2\\.4$", SSH_OLD_SESSIONID}, /* Van Dyke */ 89 { "^2\\.4$", SSH_OLD_SESSIONID }, /* Van Dyke */
90 { "^3\\.0 SecureCRT", SSH_OLD_SESSIONID}, 90 { "^3\\.0 SecureCRT", SSH_OLD_SESSIONID },
91 { "^1\\.7 SecureFX", SSH_OLD_SESSIONID}, 91 { "^1\\.7 SecureFX", SSH_OLD_SESSIONID },
92 { "^1\\.2\\.1[89]", SSH_BUG_IGNOREMSG}, 92 { "^1\\.2\\.1[89]", SSH_BUG_IGNOREMSG },
93 { "^1\\.2\\.2[012]", SSH_BUG_IGNOREMSG}, 93 { "^1\\.2\\.2[012]", SSH_BUG_IGNOREMSG },
94 { "^SSH Compatible Server", /* Netscreen */
95 SSH_BUG_PASSWORDPAD },
96 { "^OSU_0", SSH_BUG_PASSWORDPAD },
97 { "^OSU_1\\.[0-4]", SSH_BUG_PASSWORDPAD },
98 { "^OSU_1\\.5alpha[1-3]",
99 SSH_BUG_PASSWORDPAD },
94 { NULL, 0 } 100 { NULL, 0 }
95 }; 101 };
96 /* process table, return first match */ 102 /* process table, return first match */