Index: net/quic/quic_connection.cc |
diff --git a/net/quic/quic_connection.cc b/net/quic/quic_connection.cc |
index c8a132f6e52ae99490232982c2eaa9721050d8db..1d7f3e5d15b5e59dcb0f3ac093c48b5bb80b823d 100644 |
--- a/net/quic/quic_connection.cc |
+++ b/net/quic/quic_connection.cc |
@@ -624,6 +624,7 @@ bool QuicConnection::OnUnauthenticatedHeader(const QuicPacketHeader& header) { |
void QuicConnection::OnDecryptedPacket(EncryptionLevel level) { |
last_decrypted_packet_level_ = level; |
last_packet_decrypted_ = true; |
+ |
// If this packet was foward-secure encrypted and the forward-secure encrypter |
// is not being used, start using it. |
if (encryption_level_ != ENCRYPTION_FORWARD_SECURE && |
@@ -1842,6 +1843,11 @@ void QuicConnection::SetEncrypter(EncryptionLevel level, |
} |
} |
+void QuicConnection::SetDiversificationNonce(const DiversificationNonce nonce) { |
+ DCHECK_EQ(Perspective::IS_SERVER, perspective_); |
+ packet_generator_.SetDiversificationNonce(nonce); |
+} |
+ |
void QuicConnection::SetDefaultEncryptionLevel(EncryptionLevel level) { |
encryption_level_ = level; |
packet_generator_.set_encryption_level(level); |