Closed Bug 1261676 Opened 8 years ago Closed 8 years ago

Test that disabling PSK suites also disables resumption

Categories

(NSS :: Libraries, defect)

defect
Not set
normal

Tracking

(firefox48 affected)

RESOLVED FIXED
Tracking Status
firefox48 --- affected

People

(Reporter: mt, Assigned: mt)

References

Details

Attachments

(1 obsolete file)

I wrote a test for this.  It's probably useful.
Attachment #8737601 - Flags: review?(ekr)
Comment on attachment 8737601 [details] [diff] [review]
0001-Disable-PSK-and-disable-resumption.patch

Review of attachment 8737601 [details] [diff] [review]:
-----------------------------------------------------------------

LGTM

::: external_tests/ssl_gtest/ssl_loopback_unittest.cc
@@ +1012,5 @@
> +  Connect();
> +  SendReceive();
> +  CheckKeys(ssl_kea_ecdh, ssl_auth_rsa);
> +  DataBuffer psk1(c1->extension());
> +  EXPECT_EQ(psk1.len(), 0UL);

Is there a reason to make a DataBuffer? Can't you interrogate extension directly
Attachment #8737601 - Flags: review?(ekr) → review+
Comment on attachment 8737601 [details] [diff] [review]
0001-Disable-PSK-and-disable-resumption.patch

Review of attachment 8737601 [details] [diff] [review]:
-----------------------------------------------------------------

> Is there a reason to make a DataBuffer? Can't you interrogate extension directly

That spun off an investigation.  I discovered several things:

1. we leak the DummyPrSocket on every test
2. the resume TLS 1.3 twice test never bothered to capture the PSK extension
3. because I cribbed from that test without double-checking, neither did this test
4. when we disable all the PSK suites, we still send the PSK extension (this is benign, but we shouldn't)

I will work on a patch during this upcoming breakfast meeting.
Attachment #8737601 - Flags: review-
See rietveld request above.
Flags: needinfo?(ekr)
Attachment #8737601 - Attachment is obsolete: true
See rietveld request: https://codereview.appspot.com/292550043
LGTM in Rietveld.
Flags: needinfo?(ekr)
https://hg.mozilla.org/projects/nss/rev/39dd42b2a731
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → 3.25
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: