summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2021-10-22 12:30:55 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2021-10-22 12:30:55 +0000
commit7a3a89dd5b9163f75de2fb4f7f656fdeee9c47ae (patch)
tree388cad35860e1851d0be682adf020a3a50899ee9 /sys/net
parent6a0ab894f4875fcd1237a6cabdf84437a24c797f (diff)
After deleting hifn(4) the only provider for the LZS compression
algorithm is gone. Reomve all LZS references from the tree. The v42bis in isakmpd also looks unsupported. OK mvs@ patrick@ sthen@
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/pfkeyv2.c10
-rw-r--r--sys/net/pfkeyv2.h5
-rw-r--r--sys/net/pfkeyv2_convert.c5
3 files changed, 5 insertions, 15 deletions
diff --git a/sys/net/pfkeyv2.c b/sys/net/pfkeyv2.c
index 9e7f9bbc861..336619f4c89 100644
--- a/sys/net/pfkeyv2.c
+++ b/sys/net/pfkeyv2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfkeyv2.c,v 1.219 2021/07/20 16:32:28 bluhm Exp $ */
+/* $OpenBSD: pfkeyv2.c,v 1.220 2021/10/22 12:30:53 bluhm Exp $ */
/*
* @(#)COPYRIGHT 1.1 (NRL) 17 January 1995
@@ -118,8 +118,7 @@ static const struct sadb_alg aalgs[] = {
};
static const struct sadb_alg calgs[] = {
- { SADB_X_CALG_DEFLATE, 0, 0, 0},
- { SADB_X_CALG_LZS, 0, 0, 0}
+ { SADB_X_CALG_DEFLATE, 0, 0, 0}
};
struct pool pkpcb_pool;
@@ -2268,11 +2267,6 @@ pfkeyv2_acquire(struct ipsec_policy *ipo, union sockaddr_union *gw,
sadb_comb->sadb_comb_encrypt = SADB_X_CALG_DEFLATE;
sadb_comb->sadb_comb_encrypt_minbits = 0;
sadb_comb->sadb_comb_encrypt_maxbits = 0;
- } else if (!strncasecmp(ipsec_def_comp, "lzs",
- sizeof("lzs"))) {
- sadb_comb->sadb_comb_encrypt = SADB_X_CALG_LZS;
- sadb_comb->sadb_comb_encrypt_minbits = 0;
- sadb_comb->sadb_comb_encrypt_maxbits = 0;
}
}
diff --git a/sys/net/pfkeyv2.h b/sys/net/pfkeyv2.h
index 6fd0c90c7de..62e2bb31143 100644
--- a/sys/net/pfkeyv2.h
+++ b/sys/net/pfkeyv2.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfkeyv2.h,v 1.90 2021/07/14 22:39:26 tobhe Exp $ */
+/* $OpenBSD: pfkeyv2.h,v 1.91 2021/10/22 12:30:53 bluhm Exp $ */
/*
* @(#)COPYRIGHT 1.1 (NRL) January 1998
*
@@ -351,8 +351,7 @@ struct sadb_x_mtu {
#define SADB_X_CALG_NONE 0
#define SADB_X_CALG_OUI 1
#define SADB_X_CALG_DEFLATE 2
-#define SADB_X_CALG_LZS 3
-#define SADB_X_CALG_MAX 3
+#define SADB_X_CALG_MAX 2
#define SADB_SAFLAGS_PFS 0x001 /* perfect forward secrecy */
#define SADB_X_SAFLAGS_TUNNEL 0x004 /* Force tunneling */
diff --git a/sys/net/pfkeyv2_convert.c b/sys/net/pfkeyv2_convert.c
index 893a4a146bc..cf5c1b3e325 100644
--- a/sys/net/pfkeyv2_convert.c
+++ b/sys/net/pfkeyv2_convert.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfkeyv2_convert.c,v 1.74 2021/07/27 17:13:03 mvs Exp $ */
+/* $OpenBSD: pfkeyv2_convert.c,v 1.75 2021/10/22 12:30:53 bluhm Exp $ */
/*
* The author of this code is Angelos D. Keromytis (angelos@keromytis.org)
*
@@ -171,9 +171,6 @@ export_sa(void **p, struct tdb *tdb)
case CRYPTO_DEFLATE_COMP:
sadb_sa->sadb_sa_encrypt = SADB_X_CALG_DEFLATE;
break;
- case CRYPTO_LZS_COMP:
- sadb_sa->sadb_sa_encrypt = SADB_X_CALG_LZS;
- break;
}
}