Org.BouncyCastle.Crypto.Tls.DtlsClientProtocol.ProcessCertificateRequest C# (CSharp) Метод

ProcessCertificateRequest() защищенный Метод

protected ProcessCertificateRequest ( ClientHandshakeState state, byte body ) : void
state ClientHandshakeState
body byte
Результат void
        protected virtual void ProcessCertificateRequest(ClientHandshakeState state, byte[] body)
        {
            if (state.authentication == null)
            {
                /*
                 * RFC 2246 7.4.4. It is a fatal handshake_failure alert for an anonymous server to
                 * request client identification.
                 */
                throw new TlsFatalAlert(AlertDescription.handshake_failure);
            }

            MemoryStream buf = new MemoryStream(body, false);

            state.certificateRequest = CertificateRequest.Parse(state.clientContext, buf);

            TlsProtocol.AssertEmpty(buf);

            state.keyExchange.ValidateCertificateRequest(state.certificateRequest);
        }