californium.scandium
californium.scandium copied to clipboard
In scandium client Queued Messages are not handled when ServerHelloDone message arrives
When messages are out of order, they are queued. Assume that in Flight 4, ServerKeyExchange is lost, and CertificateRequest arrives out of order. Later, when ServerKeyExchange arrives with ServerHelloDone in a retransmission of the whole flight, Scandium does not go through the QueuedMessages before handling ServerHelloDone.
As a result, Scandium thinks that there was no certificateRequest, so this is a PSK based session.
So the solution should be emptying the QueuedMessages before handling the ServerHelloDone.