gfe-relnote: Swap order of operations in TlsClientHandshaker::FinishHandshake. Protected by --quic_supports_tls_handshake PiperOrigin-RevId: 277831865 Change-Id: I7f67f5184fb45308ac1d33e97a70bed15c0b8e65
diff --git a/quic/core/tls_client_handshaker.cc b/quic/core/tls_client_handshaker.cc index 4e10479..749d15f 100644 --- a/quic/core/tls_client_handshaker.cc +++ b/quic/core/tls_client_handshaker.cc
@@ -320,8 +320,6 @@ session()->connection()->SetDefaultEncryptionLevel(ENCRYPTION_FORWARD_SECURE); encryption_established_ = true; handshake_confirmed_ = true; - session()->OnCryptoHandshakeEvent(QuicSession::ENCRYPTION_ESTABLISHED); - session()->OnCryptoHandshakeEvent(QuicSession::HANDSHAKE_CONFIRMED); // Fill crypto_negotiated_params_: const SSL_CIPHER* cipher = SSL_get_current_cipher(ssl()); @@ -332,6 +330,8 @@ crypto_negotiated_params_->peer_signature_algorithm = SSL_get_peer_signature_algorithm(ssl()); + session()->OnCryptoHandshakeEvent(QuicSession::ENCRYPTION_ESTABLISHED); + session()->OnCryptoHandshakeEvent(QuicSession::HANDSHAKE_CONFIRMED); session()->connection()->OnHandshakeComplete(); }