protected virtual void ProcessCertificateStatus(ClientHandshakeState state, byte[] body)
{
if (!state.allowCertificateStatus)
{
/*
* RFC 3546 3.6. If a server returns a "CertificateStatus" message, then the
* server MUST have included an extension of type "status_request" with empty
* "extension_data" in the extended server hello..
*/
throw new TlsFatalAlert(AlertDescription.unexpected_message);
}
MemoryStream buf = new MemoryStream(body, false);
state.certificateStatus = CertificateStatus.Parse(buf);
TlsProtocol.AssertEmpty(buf);
// TODO[RFC 3546] Figure out how to provide this to the client/authentication.
}