X-Git-Url: http://andersk.mit.edu/gitweb/openssh.git/blobdiff_plain/cbc5abf97adc573b42064fd89661f4ab7b5cf34d..c623936e2252567dff4ce9b4395977921e661c8f:/compat.c diff --git a/compat.c b/compat.c index b4e99a92..83340993 100644 --- a/compat.c +++ b/compat.c @@ -23,17 +23,22 @@ */ #include "includes.h" -RCSID("$OpenBSD: compat.c,v 1.30 2000/12/03 11:29:04 markus Exp $"); +RCSID("$OpenBSD: compat.c,v 1.34 2001/01/21 19:05:48 markus Exp $"); -#include "ssh.h" -#include "packet.h" -#include "xmalloc.h" -#include "compat.h" #ifdef HAVE_LIBPCRE # include #else /* Use native regex libraries */ -# include -#endif /* HAVE_LIBRX */ +# ifdef HAVE_REGEX_H +# include +# else +# include "fake-regex.h" +# endif +#endif /* HAVE_LIBPCRE */ + +#include "packet.h" +#include "xmalloc.h" +#include "compat.h" +#include "log.h" int compat13 = 0; int compat20 = 0; @@ -62,16 +67,20 @@ compat_datafellows(const char *version) char *pat; int bugs; } check[] = { - { "^OpenSSH[-_]2\\.[012]", SSH_OLD_SESSIONID }, + { "^OpenSSH[-_]2\\.[012]", + SSH_OLD_SESSIONID|SSH_BUG_BANNER }, + { "^OpenSSH_2\\.3\\.0", SSH_BUG_BANNER }, + { "^OpenSSH", 0 }, { "MindTerm", 0 }, { "^2\\.1\\.0", SSH_BUG_SIGBLOB|SSH_BUG_HMAC| - SSH_OLD_SESSIONID }, + SSH_OLD_SESSIONID|SSH_BUG_DEBUG }, { "^2\\.0\\.1[3-9]", SSH_BUG_SIGBLOB|SSH_BUG_HMAC| - SSH_OLD_SESSIONID| + SSH_OLD_SESSIONID|SSH_BUG_DEBUG| SSH_BUG_PKSERVICE|SSH_BUG_X11FWD }, { "^2\\.0\\.", SSH_BUG_SIGBLOB|SSH_BUG_HMAC| - SSH_OLD_SESSIONID|SSH_BUG_PKAUTH| - SSH_BUG_PKSERVICE|SSH_BUG_X11FWD }, + SSH_OLD_SESSIONID|SSH_BUG_DEBUG| + SSH_BUG_PKSERVICE|SSH_BUG_X11FWD| + SSH_BUG_PKAUTH }, { "^2\\.[23]\\.0", SSH_BUG_HMAC}, { "^2\\.[2-9]\\.", 0 }, { "^2\\.4$", SSH_OLD_SESSIONID}, /* Van Dyke */ @@ -91,7 +100,7 @@ compat_datafellows(const char *version) ret = regexec(®, version, 0, NULL, 0); regfree(®); if (ret == 0) { - debug("match: %s pat %s\n", version, check[i].pat); + debug("match: %s pat %s", version, check[i].pat); datafellows = check[i].bugs; return; }