recv package:tls
Get data out of Data packet, and automatically renegotiate if a
Handshake ClientHello is received. An empty result means EOF.
Deprecated: use recvData that returns strict bytestring
Receive specified number of bytes from the connection.
called at each certificate chain message received
called at each handshake message received
called at each handshake message received for TLS 1.3
Called by TLS to receive from QUIC the next plaintext handshake
fragment. The argument specifies with which encryption level the
fragment should be decrypted.
QUIC may return partial fragments to TLS. TLS will then call
quicRecv again as long as necessary. Note however that
fragments must be returned in the correct sequence, i.e. the order the
TLS peer emitted them.
The function may return an error to TLS if end of stream is reached or
if a protocol error has been received, believing the handshake cannot
proceed any longer. If the TLS handshake protocol cannot recover from
this error, the failure condition will be reported back to QUIC
through the control interface.