summaryrefslogtreecommitdiff
path: root/compat.c
diff options
context:
space:
mode:
authordtucker@openbsd.org <dtucker@openbsd.org>2020-06-01 07:11:38 +0000
committerDarren Tucker <dtucker@dtucker.net>2020-06-04 11:03:39 +1000
commitb458423a38a3140ac022ffcffcb332609faccfe3 (patch)
tree00f747868a77c06e3068387d548039ed36077295 /compat.c
parent5ad3c3a33ef038b55a14ebd31faeeec46073db2c (diff)
upstream: Remove now-unused proto_spec and associated definitions.
ok djm@ OpenBSD-Commit-ID: 2e2b18e3aa6ee22a7b69c39f2d3bd679ec35c362
Diffstat (limited to 'compat.c')
-rw-r--r--compat.c28
1 files changed, 1 insertions, 27 deletions
diff --git a/compat.c b/compat.c
index 0624dc6d..7c0e1c23 100644
--- a/compat.c
+++ b/compat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: compat.c,v 1.113 2018/08/13 02:41:05 djm Exp $ */
+/* $OpenBSD: compat.c,v 1.114 2020/06/01 07:11:38 dtucker Exp $ */
/*
* Copyright (c) 1999, 2000, 2001, 2002 Markus Friedl. All rights reserved.
*
@@ -157,32 +157,6 @@ compat_datafellows(const char *version)
return 0;
}
-#define SEP ","
-int
-proto_spec(const char *spec)
-{
- char *s, *p, *q;
- int ret = SSH_PROTO_UNKNOWN;
-
- if (spec == NULL)
- return ret;
- q = s = strdup(spec);
- if (s == NULL)
- return ret;
- for ((p = strsep(&q, SEP)); p && *p != '\0'; (p = strsep(&q, SEP))) {
- switch (atoi(p)) {
- case 2:
- ret |= SSH_PROTO_2;
- break;
- default:
- logit("ignoring bad proto spec: '%s'.", p);
- break;
- }
- }
- free(s);
- return ret;
-}
-
char *
compat_cipher_proposal(char *cipher_prop)
{