summaryrefslogtreecommitdiff
path: root/src/lib/libc/net
diff options
context:
space:
mode:
authortb <>2026-08-29 05:12:51 +0000
committertb <>2026-08-29 05:12:51 +0000
commitc2b41b2fdcfd4ba238da69ff7b5976aa1c4e2dbb (patch)
tree3883cbb70d3cda040a107b076036c9870efe2ff2 /src/lib/libc/net
parentc087cfb4dd519b837fdf6897a81c00d4bf2fa78e (diff)
downloadopenbsd-c2b41b2fdcfd4ba238da69ff7b5976aa1c4e2dbb.tar.gz
openbsd-c2b41b2fdcfd4ba238da69ff7b5976aa1c4e2dbb.tar.bz2
openbsd-c2b41b2fdcfd4ba238da69ff7b5976aa1c4e2dbb.zip
libssl: ensure server selected ALPN was advertised
Per RFC 7301, section 3.2, "In the event that the server supports no protocols that the client advertises, then the server SHALL respond with a fatal "no_application_protocol" alert. If a server does not do that and chooses a protocol that we have not advertised, we should abort the handshake. The RFC does not specify an alert for this case. BoringSSL chose illegal_parameter and OpenSSL decode_error. I slightly prefer illegal_parameter, so went with that. Reported by Acts1631 with a similar diff. ok jsing kenjiro
Diffstat (limited to 'src/lib/libc/net')
0 files changed, 0 insertions, 0 deletions