update master-with-bazel from master branch

This commit is contained in:
BoringSSL Robot
2023-09-01 17:32:01 +00:00
3 changed files with 7 additions and 9 deletions
+1 -4
View File
@@ -121,10 +121,7 @@ boringssl_copts = [
}) + asm_copts
boringssl_copts_c11 = boringssl_copts + select({
# TODO(crbug.com/boringssl/624): This should pass /std:c11 on MSVC. It was
# reverted due to https://github.com/bazelbuild/bazel/issues/15073. When
# Bazel 6.3.0 is released, restore it and require C11 on MSVC.
"@platforms//os:windows": [],
"@platforms//os:windows": ["/std:c11"],
"//conditions:default": gcc_copts_c11,
})
+5 -1
View File
@@ -997,6 +997,10 @@ func (hs *clientHandshakeState) doTLS13Handshake(msg any) error {
if haveHelloRetryRequest {
hs.writeServerHash(helloRetryRequest.marshal())
if !bytes.Equal(hs.hello.sessionID, helloRetryRequest.sessionID) {
return errors.New("tls: ClientHello and HelloRetryRequest session IDs did not match.")
}
if c.config.Bugs.FailIfHelloRetryRequested {
return errors.New("tls: unexpected HelloRetryRequest")
}
@@ -1097,7 +1101,7 @@ func (hs *clientHandshakeState) doTLS13Handshake(msg any) error {
}
if !bytes.Equal(hs.hello.sessionID, hs.serverHello.sessionID) {
return errors.New("tls: session IDs did not match.")
return errors.New("tls: ClientHello and ServerHello session IDs did not match.")
}
// Resolve PSK and compute the early secret.
+1 -4
View File
@@ -121,10 +121,7 @@ boringssl_copts = [
}) + asm_copts
boringssl_copts_c11 = boringssl_copts + select({
# TODO(crbug.com/boringssl/624): This should pass /std:c11 on MSVC. It was
# reverted due to https://github.com/bazelbuild/bazel/issues/15073. When
# Bazel 6.3.0 is released, restore it and require C11 on MSVC.
"@platforms//os:windows": [],
"@platforms//os:windows": ["/std:c11"],
"//conditions:default": gcc_copts_c11,
})