Skip to content

Commit

Permalink
Bug 1315735 - TLS 1.3 draft 18 - Test that if resumption is off we do…
Browse files Browse the repository at this point in the history
…n't offer a PSK

modes xtn. r=mt

https://nss-review.dev.mozaws.net/D30
  • Loading branch information
ekr committed Nov 7, 2016
1 parent 184e9d4 commit 669c9b2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gtests/ssl_gtest/ssl_extension_unittest.cc
Expand Up @@ -700,6 +700,14 @@ TEST_F(TlsExtensionTest13Stream, ResumeBogusKeModes) {
server_->CheckErrorCode(SSL_ERROR_BAD_MAC_READ);
}

TEST_P(TlsExtensionTest13, NoKeModesIfResumptionOff) {
ConfigureSessionCache(RESUME_NONE, RESUME_NONE);
auto capture = new TlsExtensionCapture(ssl_tls13_psk_key_exchange_modes_xtn);
client_->SetPacketFilter(capture);
Connect();
EXPECT_FALSE(capture->captured());
}

// In these tests, we downgrade to TLS 1.2, causing the
// server to negotiate TLS 1.2.
// 1. Both sides only support TLS 1.3, so we get a cipher version
Expand Down

0 comments on commit 669c9b2

Please sign in to comment.