DtlsEngine.writeEarlyData

TlsResult writeEarlyData(const(ubyte)[] data)

Writes 0-RTT early data for a pending resumption handshake.

Lives on the engine (not the peer) because peers are only obtainable after the handshake completes. Client-side only; call after resumeWithSession() and before the first handshake() call. The resulting peer reports usedEarlyData == true when the server accepted the data.

Parameters

dataPlaintext data to send as early data.

Returns

TlsResult with bytes written, or ERROR if early data is not

available (no pending resumption or 0-RTT disabled).