diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-02-24 04:42:50 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-02-24 04:42:50 +0000 |
commit | 90dd6a03cb164222406947bb3ddc717b060a2476 (patch) | |
tree | 0fd6644d7a7f3fd29b70fa198fb9e3c26d517cd8 /sbin/isakmpd/sysdep/linux/klips.c | |
parent | 5935d29a2f96630b8e2b1796f8392067115fd0f0 (diff) |
Make DES a feature, so isakmpd can compile on Linux (most of the fixed
by newsham@lava.net)
Diffstat (limited to 'sbin/isakmpd/sysdep/linux/klips.c')
-rw-r--r-- | sbin/isakmpd/sysdep/linux/klips.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/sbin/isakmpd/sysdep/linux/klips.c b/sbin/isakmpd/sysdep/linux/klips.c index 4b90baccfb5..34a03a78544 100644 --- a/sbin/isakmpd/sysdep/linux/klips.c +++ b/sbin/isakmpd/sysdep/linux/klips.c @@ -1,4 +1,4 @@ -/* $OpenBSD: klips.c,v 1.3 2001/02/24 03:59:57 angelos Exp $ */ +/* $OpenBSD: klips.c,v 1.4 2001/02/24 04:42:49 angelos Exp $ */ /* * Copyright (c) 1999 Niklas Hallqvist. All rights reserved. @@ -241,32 +241,14 @@ klips_set_spi (struct sa *sa, struct proto *proto, int incoming) /* Funny expression due to I just want one switch. */ switch (proto->id | (iproto->auth << 8)) { - case IPSEC_ESP_DES: - case IPSEC_ESP_DES_IV32: - case IPSEC_ESP_DES_IV64: - emsg->em_alg = XF_ESPDES; - break; - case IPSEC_ESP_3DES: emsg->em_alg = XF_ESP3DES; break; - case IPSEC_ESP_DES | (IPSEC_AUTH_HMAC_MD5 << 8): - case IPSEC_ESP_DES_IV32 | (IPSEC_AUTH_HMAC_MD5 << 8): - case IPSEC_ESP_DES_IV64 | (IPSEC_AUTH_HMAC_MD5 << 8): - emsg->em_alg = XF_ESPDESMD596; - break; - case IPSEC_ESP_3DES | (IPSEC_AUTH_HMAC_MD5 << 8): emsg->em_alg = XF_ESP3DESMD596; break; - case IPSEC_ESP_DES | (IPSEC_AUTH_HMAC_SHA << 8): - case IPSEC_ESP_DES_IV32 | (IPSEC_AUTH_HMAC_SHA << 8): - case IPSEC_ESP_DES_IV64 | (IPSEC_AUTH_HMAC_SHA << 8): - emsg->em_alg = XF_ESPDESSHA196; - break; - case IPSEC_ESP_3DES | (IPSEC_AUTH_HMAC_SHA << 8): emsg->em_alg = XF_ESP3DESSHA196; break; |