summaryrefslogtreecommitdiffstats
path: root/sys/crypto/cryptosoft.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2001-07-05 17:53:28 +0000
committerderaadt <deraadt@openbsd.org>2001-07-05 17:53:28 +0000
commitd2b4b87c6828ef5154b5a2f2a8f638d65069cc30 (patch)
tree0782f6c7014a9a84b965eb52ad2d47e5a22d2c7a /sys/crypto/cryptosoft.c
parentKNF (diff)
downloadwireguard-openbsd-d2b4b87c6828ef5154b5a2f2a8f638d65069cc30.tar.xz
wireguard-openbsd-d2b4b87c6828ef5154b5a2f2a8f638d65069cc30.zip
#ifdef IPCOMP stuff properly
Diffstat (limited to 'sys/crypto/cryptosoft.c')
-rw-r--r--sys/crypto/cryptosoft.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/crypto/cryptosoft.c b/sys/crypto/cryptosoft.c
index 2029c9fdb57..5803f554d9e 100644
--- a/sys/crypto/cryptosoft.c
+++ b/sys/crypto/cryptosoft.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cryptosoft.c,v 1.26 2001/07/05 16:44:00 jjbg Exp $ */
+/* $OpenBSD: cryptosoft.c,v 1.27 2001/07/05 17:53:28 deraadt Exp $ */
/*
* The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu)
@@ -455,7 +455,9 @@ swcr_newsession(u_int32_t *sid, struct cryptoini *cri)
struct swcr_data **swd;
struct auth_hash *axf;
struct enc_xform *txf;
+#ifdef IPCOMP
struct comp_algo *cxf;
+#endif
u_int32_t i;
int k;
@@ -618,14 +620,12 @@ swcr_newsession(u_int32_t *sid, struct cryptoini *cri)
(*swd)->sw_axf = axf;
break;
+#ifdef IPCOMP
case CRYPTO_DEFLATE_COMP:
cxf = &comp_algo_deflate;
- goto compcommon;
-
- compcommon:
(*swd)->sw_cxf = cxf;
break;
-
+#endif
default:
swcr_freesession(i);
return EINVAL;