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

(cherry picked from commit 91d388119ae229702538b96d79cf76556cf0ecf4)

Details

Provenance
rewAuthored on Jan 9 2022, 1:07 AM
Reviewer
ae
Differential Revision
D33226: tcpmd5: return ENOENT when security association not found
Parents
rGeb54f261fce2: compiler-rt: support ReExec() on FreeBSD
Branches
Unknown
Tags
Unknown