Repository navigation
fix(application): TLS extensions stay raw in Certificate, CertificateRequest and NewSessionTicket where their RFCs define them (#3254) - #3263
Open
JarryShaw wants to merge 1 commit into
Conversation
Documentation build overview
7 files changed ·
|
Owner
Author
|
Good to go once two nits are folded in (reviewed at
|
…Request and NewSessionTicket where their RFCs define them (#3254) Each TLS and DTLS extension below now decodes, and builds from keyword arguments, in the messages its RFC or the IANA registry's TLS 1.3 column lists, with a byte-exact round trip. - status_request: a CertificateStatus (RFC 6066 section 8) in a Certificate, empty in a CertificateRequest (RFC 9846 section 4.5.1.1). - signed_certificate_timestamp: the list in a Certificate, empty in a CertificateRequest. - compress_certificate: the algorithm list in a CertificateRequest (RFC 8879 section 3). - early_data: max_early_data_size in a NewSessionTicket (RFC 9846 section 4.3.10). - With PCAPKIT_MIMIC=wireshark, the CertificateStatus and max_early_data_size cells decode as ssl_dissect_hnd_extension reads them, but for a DTLS Certificate's status_request, which its is_tls13 test leaves unread.
JarryShaw
force-pushed
the
fix/3254-tls-extension-rfc-cells
branch
from
November 30, 2026 20:05
3a75f64 to
9dd25a2
Compare
Owner
Author
|
Good to go at |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Please follow the guide below
Put an
xinto every box [ ] that applies to your pull request (like this: [x])Use the Preview tab to see how your pull request will look
Searched for similar pull requests
Followed the coding style (
make pylint,make mypy,make isort)make testpasses, and a test case covers the changeDescribed the user-visible change below and left its changelog entry to the maintainer, keeping
docs/source/changelog/andCHANGELOG.mdout of the diff, if the change is user-visible: N/A — centralisedWhat is the purpose of your pull request?
Tick the commit type your subject line carries.
fix— corrects a defectfeat— adds a featureperf— changes performance, not behaviourrefactor— changes neither behaviour nor performancetest— tests onlydocs— documentation onlyci— workflows or build toolingrelease— bumps the version or rolls up a distributionchore— anything elseAlso tick if it regenerates constant or registry tables, members keeping their numeric values (the
constlabel)Description of your pull request and other information
Closes #3254.
Each cell decodes, and builds from keyword arguments, where its RFC or the IANA registry's TLS 1.3 column lists it, byte-exact both ways:
CertificateCertificateRequestNewSessionTicketstatus_requestCertificateStatus(RFC 6066 §8, RFC 9846 §4.5.1.1)signed_certificate_timestampcompress_certificateearly_dataEarlyDataNewSessionTicket(RFC 9846 §4.3.10)PCAPKIT_MIMIC=wiresharkfills #3252's two raw cells, asssl_dissect_hnd_extension(dissectors/packet-tls-utils.c) reads them. A DTLSCertificate'sstatus_requestreads nothing there, sinceis_tls13holds for TLS 1.3 alone, so__structure__gains a DTLS column for it. Onlyocsphas aresponse: RFC 9846 §4.5.1.1 requires RFC 6066's structure, and IANA reservesocsp_multi.Tests:
test_tls_extension_rfc_cells_3254_unit.pyand the updated #3228 table fail on agit archive origin/developexport (unittest: 2 failures, 13 errors). Coverage ofssl/rises (99.49% to 99.51%, branch). No pins moved.tests/protocols/application,tests/protocols/*.py,tests/*.py,tests/project,tests/utilitiesand the Sphinx-gated modules pass, buttest_conda_dev_release_gate_2458, which fails the same on the export.