Skip to content

Commit 6aa46eb

Browse files
FiloSottilegopherbot
authored andcommitted
crypto/tls: normalize spelling of "ClientHello" in comments
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]>
1 parent 10ca5ba commit 6aa46eb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/crypto/tls/common.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ type ClientHelloInfo struct {
456456
SupportedVersions []uint16
457457

458458
// Extensions lists the IDs of the extensions presented by the client
459-
// in the client hello.
459+
// in the ClientHello.
460460
Extensions []uint16
461461

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

822822
// EncryptedClientHelloRejectionVerify, if not nil, is called when ECH is
823823
// rejected by the remote server, in order to verify the ECH provider
824-
// certificate in the outer Client Hello. If it returns a non-nil error, the
824+
// certificate in the outer ClientHello. If it returns a non-nil error, the
825825
// handshake is aborted and that error results.
826826
//
827827
// On the server side this field is not used.

src/crypto/tls/handshake_client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ func (hs *clientHandshakeState) processServerHello() (bool, error) {
944944
}
945945

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

0 commit comments

Comments
 (0)