CVSROOT: /cvs Module name: src Changes by: js...@cvs.openbsd.org 2022/02/21 11:22:20
Modified files: lib/libssl : d1_pkt.c ssl_locl.h ssl_pkt.c Log message: Factor out alert handing code in the legacy stack. Pull out the code that processes incoming alerts - a chunk of the complexity is due to the fact that in TLSv1.2 and earlier, alerts can be fragmented across multiple records or multiple alerts can be delivered in a single record. In DTLS there is no way that we can reassemble fragmented alerts (although the RFC is silent on this), however we could have multiple alerts in the same record. This change means that we will handle this situation more appropriately and if we encounter a fragmented alert we will now treat this as a decode error (instead of silently ignoring it). ok beck@ tb@