HomeFreeBSD

tcpmd5: return ENOENT when security association not found

Description

tcpmd5: return ENOENT when security association not found

Return ENOENT from tcp_ipsec_input() when a security association is not
found. This allows callers of TCP_MD5_INPUT() to differentiate between a
security association not found and receiving a bad signature.

Also return ENOENT from tcp_ipsec_output() for consistency.

Reviewed by: ae
Sponsored by: nepustil.net
Sponsored by: Klara Inc.
Differential Revision: https://reviews.freebsd.org/D33226

Details

Provenance
rewAuthored on Jan 9 2022, 1:07 AM
Reviewer
ae
Differential Revision
D33226: tcpmd5: return ENOENT when security association not found
Parents
rG086be6a80979: LinuxKPI: 802.11 handle IEEE80211_CONF_IDLE better
Branches
Unknown
Tags
Unknown