Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netipsec/xform_tcp.c
Show First 20 Lines • Show All 355 Lines • ▼ Show 20 Lines | tcpsignature_init(struct secasvar *sav, struct xformsw *xsp) | ||||
} | } | ||||
sav->tdb_xform = xsp; | sav->tdb_xform = xsp; | ||||
return (0); | return (0); | ||||
} | } | ||||
/* | /* | ||||
* Called when the SA is deleted. | * Called when the SA is deleted. | ||||
*/ | */ | ||||
static int | static void | ||||
tcpsignature_zeroize(struct secasvar *sav) | tcpsignature_cleanup(struct secasvar *sav) | ||||
{ | { | ||||
sav->tdb_xform = NULL; | |||||
return (0); | |||||
} | } | ||||
static struct xformsw tcpsignature_xformsw = { | static struct xformsw tcpsignature_xformsw = { | ||||
.xf_type = XF_TCPSIGNATURE, | .xf_type = XF_TCPSIGNATURE, | ||||
.xf_name = "TCP-MD5", | .xf_name = "TCP-MD5", | ||||
.xf_init = tcpsignature_init, | .xf_init = tcpsignature_init, | ||||
.xf_zeroize = tcpsignature_zeroize, | .xf_cleanup = tcpsignature_cleanup, | ||||
}; | }; | ||||
static const struct tcpmd5_methods tcpmd5_methods = { | static const struct tcpmd5_methods tcpmd5_methods = { | ||||
.input = tcp_ipsec_input, | .input = tcp_ipsec_input, | ||||
.output = tcp_ipsec_output, | .output = tcp_ipsec_output, | ||||
.pcbctl = tcp_ipsec_pcbctl, | .pcbctl = tcp_ipsec_pcbctl, | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines |