diff options
author | Ekr <ekr@rtfm.com> | 2019-03-14 07:58:21 +1100 |
---|---|---|
committer | Ekr <ekr@rtfm.com> | 2019-03-14 07:58:21 +1100 |
commit | ec86dbb633e23a97267de00eeee49d775fe9ee17 (patch) | |
tree | bd73fd1824c8d8ed97f5a40b302b90e20d4d16f3 /gtests/ssl_gtest | |
parent | 3bef99f38e58d8d58da1128042d9c872d7b3fe2a (diff) | |
download | nss-hg-ec86dbb633e23a97267de00eeee49d775fe9ee17.tar.gz |
Bug 1517714 - Properly handle ESNI with HRR, r=mtNSS_3_43_BETA2
Diffstat (limited to 'gtests/ssl_gtest')
-rw-r--r-- | gtests/ssl_gtest/tls_esni_unittest.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gtests/ssl_gtest/tls_esni_unittest.cc b/gtests/ssl_gtest/tls_esni_unittest.cc index 3c860a0b2..dbac56f13 100644 --- a/gtests/ssl_gtest/tls_esni_unittest.cc +++ b/gtests/ssl_gtest/tls_esni_unittest.cc @@ -305,11 +305,14 @@ TEST_P(TlsConnectTls13, ConnectEsniHrr) { server_, kTlsHandshakeHelloRetryRequest); auto filter = MakeTlsFilter<TlsExtensionCapture>(client_, ssl_server_name_xtn); - auto cfilter = - MakeTlsFilter<TlsExtensionCapture>(client_, ssl_server_name_xtn); + auto filter2 = + MakeTlsFilter<TlsExtensionCapture>(client_, ssl_server_name_xtn, true); + client_->SetFilter(std::make_shared<ChainedPacketFilter>( + ChainedPacketFilterInit({filter, filter2}))); server_->SetSniCallback(SniCallback); Connect(); - CheckSniExtension(cfilter->extension()); + CheckSniExtension(filter->extension()); + CheckSniExtension(filter2->extension()); EXPECT_NE(0UL, hrr_capture->buffer().len()); } |