summaryrefslogtreecommitdiffstats
path: root/sys/netinet6
diff options
context:
space:
mode:
authorsuz <suz@FreeBSD.org>2004-11-08 18:49:51 +0000
committersuz <suz@FreeBSD.org>2004-11-08 18:49:51 +0000
commit30108058ef925b4c34031dec54099496ef4e20d0 (patch)
tree0912a1de7b2155b38bee6a88783ce5b4d303f252 /sys/netinet6
parentfe29d052b3b44fdb738ae8d15342c3d868de1d7e (diff)
downloadFreeBSD-src-30108058ef925b4c34031dec54099496ef4e20d0.zip
FreeBSD-src-30108058ef925b4c34031dec54099496ef4e20d0.tar.gz
support TCP-MD5(IPv4) in KAME-IPSEC, too.
MFC after: 3 week
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/ah_core.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/netinet6/ah_core.c b/sys/netinet6/ah_core.c
index 96400b5..d91fb97 100644
--- a/sys/netinet6/ah_core.c
+++ b/sys/netinet6/ah_core.c
@@ -189,6 +189,10 @@ static const struct ah_algorithm ah_algorithms[] = {
"aes-xcbc-mac",
ah_aes_xcbc_mac_init, ah_aes_xcbc_mac_loop,
ah_aes_xcbc_mac_result, },
+ { ah_sumsiz_1216, ah_none_mature, 1, 80, /* TCP_KEYLEN_MIN/MAX */
+ "TCP-MD5",
+ ah_none_init, ah_none_loop,
+ ah_none_result, },
};
const struct ah_algorithm *
@@ -217,6 +221,8 @@ ah_algorithm_lookup(idx)
return &ah_algorithms[8];
case SADB_X_AALG_AES_XCBC_MAC:
return &ah_algorithms[9];
+ case SADB_X_AALG_TCP_MD5:
+ return &ah_algorithms[10];
default:
return NULL;
}
OpenPOWER on IntegriCloud