Skip to content

Commit

Permalink
crypto/tls: normalize spelling of "ClientHello" in comments
Browse files Browse the repository at this point in the history
Change-Id: I2b62fb37ae390c42682354eaa2a9d03159563b6d
Reviewed-on: https://go-review.googlesource.com/c/go/+/637179
Reviewed-by: Daniel McCarney <[email protected]>
Reviewed-by: Roland Shoemaker <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
Auto-Submit: Filippo Valsorda <[email protected]>
Reviewed-by: David Chase <[email protected]>
  • Loading branch information
FiloSottile authored and gopherbot committed Dec 18, 2024
1 parent 10ca5ba commit 6aa46eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/crypto/tls/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ type ClientHelloInfo struct {
SupportedVersions []uint16

// Extensions lists the IDs of the extensions presented by the client
// in the client hello.
// in the ClientHello.
Extensions []uint16

// Conn is the underlying net.Conn for the connection. Do not read
Expand Down Expand Up @@ -821,7 +821,7 @@ type Config struct {

// EncryptedClientHelloRejectionVerify, if not nil, is called when ECH is
// rejected by the remote server, in order to verify the ECH provider
// certificate in the outer Client Hello. If it returns a non-nil error, the
// certificate in the outer ClientHello. If it returns a non-nil error, the
// handshake is aborted and that error results.
//
// On the server side this field is not used.
Expand Down
2 changes: 1 addition & 1 deletion src/crypto/tls/handshake_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@ func (hs *clientHandshakeState) processServerHello() (bool, error) {
}

// checkALPN ensure that the server's choice of ALPN protocol is compatible with
// the protocols that we advertised in the Client Hello.
// the protocols that we advertised in the ClientHello.
func checkALPN(clientProtos []string, serverProto string, quic bool) error {
if serverProto == "" {
if quic && len(clientProtos) > 0 {
Expand Down

0 comments on commit 6aa46eb

Please sign in to comment.