]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Simplify IPsec transform-specific teardown.
authorJohn Baldwin <jhb@FreeBSD.org>
Thu, 25 Jun 2020 23:59:16 +0000 (23:59 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 25 Jun 2020 23:59:16 +0000 (23:59 +0000)
commitdae61c9d09a79fc93c9486c212a586512339e6a0
tree1545d554f406b443890e7ce49371fdce2655e095
parentf82eb2a6f04c2a4193378f932fe8ab9b84fbb67d
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