diff options
author | Damien Miller <djm@mindrot.org> | 2000-04-04 14:38:59 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-04-04 14:38:59 +1000 |
commit | 33b13568b520b25990261206e10c941a9270238f (patch) | |
tree | be9d549ee0c9c7774e3ec1da8d807b2e04b00bec /compat.c | |
parent | 193ba88dd6e9d6bcd5f476c7f5ddde8fd0b752bf (diff) | |
download | openssh-git-33b13568b520b25990261206e10c941a9270238f.tar.gz |
- OpenBSD CVS update:
- [packet.h packet.c]
ssh2 packet format
- [packet.h packet.c nchan2.ms nchan.h compat.h compat.c]
[channels.h channels.c]
channel layer support for ssh2
- [kex.h kex.c hmac.h hmac.c dsa.c dsa.h]
DSA, keyexchange, algorithm agreement for ssh2
Diffstat (limited to 'compat.c')
-rw-r--r-- | compat.c | 33 |
1 files changed, 32 insertions, 1 deletions
@@ -28,15 +28,46 @@ */ #include "includes.h" -RCSID("$Id: compat.c,v 1.3 1999/11/25 00:54:59 damien Exp $"); +RCSID("$Id: compat.c,v 1.4 2000/04/04 04:39:01 damien Exp $"); #include "ssh.h" +#include "packet.h" int compat13 = 0; +int compat20 = 0; +int datafellows = 0; void +enable_compat20(void) +{ + fatal("protocol 2.0 not implemented"); +} +void enable_compat13(void) { verbose("Enabling compatibility mode for protocol 1.3"); compat13 = 1; } +/* datafellows bug compatibility */ +void +compat_datafellows(const char *version) +{ + int i; + size_t len; + static const char *check[] = { + "2.0.1", + "2.1.0.beta.9", + "2.1.0.pre.3", + "2.1.0.public.beta.1", + NULL + }; + for (i = 0; check[i]; i++) { + len = strlen(check[i]); + if (strlen(version) >= len && + (strncmp(version, check[i], len) == 0)) { + log("datafellows: %.200s", version); + datafellows = 1; + return; + } + } +} |