]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Simplify IPsec transform-specific teardown.
authorjhb <jhb@FreeBSD.org>
Thu, 25 Jun 2020 23:59:16 +0000 (23:59 +0000)
committerjhb <jhb@FreeBSD.org>
Thu, 25 Jun 2020 23:59:16 +0000 (23:59 +0000)
commit9b3292e515f4b43ee6a0054b1f1e97eb91d4bf5e
tree1545d554f406b443890e7ce49371fdce2655e095
parent4a47715bda6eea2cd8df796ebeacf3ad5441615a
Simplify IPsec transform-specific teardown.

- Rename from the teardown callback from 'zeroize' to 'cleanup' since
  this no longer zeroes keys.

- Change the callback return type to void.  Nothing checked the return
  value and it was always zero.

- Don't have esp call into ah since it no longer needs to depend on
  this to clear the auth key.  Instead, both are now private and
  self-contained.

Reviewed by: delphij
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D25443
sys/netipsec/key.c
sys/netipsec/xform.h
sys/netipsec/xform_ah.c
sys/netipsec/xform_esp.c
sys/netipsec/xform_ipcomp.c
sys/netipsec/xform_tcp.c