Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tidy up remaining non-standard names #1543

Merged
merged 21 commits into from
Oct 18, 2023
Merged

Conversation

cpu
Copy link
Member

@cpu cpu commented Oct 17, 2023

This branch tidies up some remaining type names/enum variants that don't meet the Rust naming conventions.

Instances in enums.rs are ignored with the intent that we want to exactly match upstream documentation in these cases.

The clippy::upper_case_acroynyms linter is added to the lib.rs deny list, and a .clippy.toml is added to set the upper-case-acronyms-aggressive: true config option to enable linting on all camel case names.

Resolves #541

cpu added 21 commits October 17, 2023 10:39
Renames the `ResumptionKind::SessionID` variant to be `SessionId` to
match Rust naming conventions.
This commit renames the ci-bench `StepperIO` struct to be named
`StepperIo` to match Rust naming conventions.
This commit updates the server acceptor example's `CRLUpdater` struct to
be named `CrlUpdater` to match Rust naming conventions.
This commit renames the `ResumptionParam::SessionID` variant to
`SessionId` in the internal bench.rs code to match the Rust naming
conventions.
This commit renames the `OCSPCertificateStatusRequest` struct to
`OcspCertificateStatusRequest` to match Rust naming conventions.
This commit renames the `CertificateStatusRequest::OCSP` variant
to `Ocsp` to match the Rust naming conventions.
This commit renames the `ClientExtension::ECPointFormats` variant to
`EcPointFormats` to match the Rust naming conventions.
This commit renames the `ServerExtension::ECPointFormats` variant to
`EcPointFormats` to match the Rust naming conventions.
This commit renames the `CertificatePayloadTLS13` struct to
`CertificatePayloadTls13` to match the Rust naming conventions.
This commit renames the `ECParameters` struct to `EcParameters` to match
Rust naming conventions.
This commit renames the `ClientECDHParams` struct to `ClientEcdhParams`
to meet Rust naming conventions.
This commit renames the `ServerECDHParams` struct to `ServerEcdhParams`
to meet the Rust naming conventions.
This commit renames the `ECHDEServerKeyExchange` to
`EcdheServerKeyExchange` to meet Rust naming conventions.
This commit renames the `ServerKeyExchangePayload::ECDHE` variant to
`Ecdhe` to match Rust naming conventions.
This commit renames the `CertificateRequestPayloadTLS13` struct to
`CertificateRequestPayloadTls13` to match Rust naming conventions.
This commit renames the `NewSessionTicketPayloadTLS13` struct to
`NewSessionTicketPayloadTls13` to meet Rust naming conventions.
This commit renames the `HandshakePayload::CertificateTLS13` variant to
`CertificateTls13` to match Rust naming conventions.
…Tls13

This commit renames the `HandshakePayload::CertificateRequestTLS13`
variant to `CertificateRequestTls13` to meet Rust naming conventions.
This commit renames the `HandshakePayload::NewSessionTicketTLS13`
variant to `NewSessionTicketTls13` to meet Rust naming conventions.
This commit renames the `ServerCheckNoSNI` struct to `ServerCheckNoSni`
to match Rust naming conventions.
@cpu cpu self-assigned this Oct 17, 2023
@cpu cpu mentioned this pull request Oct 17, 2023
@codecov
Copy link

codecov bot commented Oct 17, 2023

Codecov Report

Merging #1543 (2fb4f1e) into main (ac10422) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1543   +/-   ##
=======================================
  Coverage   96.46%   96.46%           
=======================================
  Files          74       74           
  Lines       15113    15113           
=======================================
  Hits        14579    14579           
  Misses        534      534           
Files Coverage Δ
rustls/src/client/hs.rs 97.21% <100.00%> (ø)
rustls/src/client/tls12.rs 98.53% <100.00%> (ø)
rustls/src/client/tls13.rs 97.05% <100.00%> (ø)
rustls/src/msgs/handshake.rs 98.10% <100.00%> (ø)
rustls/src/msgs/handshake_test.rs 99.60% <100.00%> (ø)
rustls/src/server/tls12.rs 96.89% <100.00%> (ø)
rustls/src/server/tls13.rs 96.98% <100.00%> (ø)
rustls/src/tls12/mod.rs 97.85% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@ctz
Copy link
Member

ctz commented Oct 18, 2023

I think this is pretty uncontroversial and mechanical; going to merge with just my approval.

@ctz ctz added this pull request to the merge queue Oct 18, 2023
Merged via the queue into rustls:main with commit 9387bcb Oct 18, 2023
22 checks passed
@djc
Copy link
Member

djc commented Oct 18, 2023

Nice!

@cpu cpu deleted the cpu-541-contd-naming-tweaks branch October 18, 2023 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Naming conventions
3 participants