summaryrefslogtreecommitdiff
path: root/compat.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2017-04-30 23:13:25 +0000
committerDamien Miller <djm@mindrot.org>2017-05-01 09:42:37 +1000
commit97f4d3083b036ce3e68d6346a6140a22123d5864 (patch)
tree301c95453934721eca9855cd01b1d0da089e3246 /compat.c
parent99f95ba82673d33215dce17bfa1512b57f54ec09 (diff)
upstream commit
remove compat20/compat13/compat15 variables ok markus@ Upstream-ID: 43802c035ceb3fef6c50c400e4ecabf12354691c
Diffstat (limited to 'compat.c')
-rw-r--r--compat.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/compat.c b/compat.c
index 945fd349b..156a5ea8e 100644
--- a/compat.c
+++ b/compat.c
@@ -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
42int compat13 = 0;
43int compat20 = 0;
44int datafellows = 0; 42int datafellows = 0;
45 43
46void
47enable_compat20(void)
48{
49 if (compat20)
50 return;
51 debug("Enabling compatibility mode for protocol 2.0");
52 compat20 = 1;
53}
54void
55enable_compat13(void)
56{
57 debug("Enabling compatibility mode for protocol 1.3");
58 compat13 = 1;
59}
60/* datafellows bug compatibility */ 44/* datafellows bug compatibility */
61u_int 45u_int
62compat_datafellows(const char *version) 46compat_datafellows(const char *version)