diff options
author | djm@openbsd.org <djm@openbsd.org> | 2017-04-30 23:13:25 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2017-05-01 09:42:37 +1000 |
commit | 97f4d3083b036ce3e68d6346a6140a22123d5864 (patch) | |
tree | 301c95453934721eca9855cd01b1d0da089e3246 /compat.c | |
parent | 99f95ba82673d33215dce17bfa1512b57f54ec09 (diff) |
upstream commit
remove compat20/compat13/compat15 variables
ok markus@
Upstream-ID: 43802c035ceb3fef6c50c400e4ecabf12354691c
Diffstat (limited to 'compat.c')
-rw-r--r-- | compat.c | 18 |
1 files changed, 1 insertions, 17 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: compat.c,v 1.102 2017/04/30 23:11:45 djm Exp $ */ | 1 | /* $OpenBSD: compat.c,v 1.103 2017/04/30 23:13:25 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 1999, 2000, 2001, 2002 Markus Friedl. All rights reserved. | 3 | * Copyright (c) 1999, 2000, 2001, 2002 Markus Friedl. All rights reserved. |
4 | * | 4 | * |
@@ -39,24 +39,8 @@ | |||
39 | #include "match.h" | 39 | #include "match.h" |
40 | #include "kex.h" | 40 | #include "kex.h" |
41 | 41 | ||
42 | int compat13 = 0; | ||
43 | int compat20 = 0; | ||
44 | int datafellows = 0; | 42 | int datafellows = 0; |
45 | 43 | ||
46 | void | ||
47 | enable_compat20(void) | ||
48 | { | ||
49 | if (compat20) | ||
50 | return; | ||
51 | debug("Enabling compatibility mode for protocol 2.0"); | ||
52 | compat20 = 1; | ||
53 | } | ||
54 | void | ||
55 | enable_compat13(void) | ||
56 | { | ||
57 | debug("Enabling compatibility mode for protocol 1.3"); | ||
58 | compat13 = 1; | ||
59 | } | ||
60 | /* datafellows bug compatibility */ | 44 | /* datafellows bug compatibility */ |
61 | u_int | 45 | u_int |
62 | compat_datafellows(const char *version) | 46 | compat_datafellows(const char *version) |