-
Notifications
You must be signed in to change notification settings - Fork 788
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bob pointed out that the previous CL didn't quiiiite move the errors around right. I looked at the ssl_parse_client_hello_with_trailing_data calls but not the SSL_parse_client_hello calls. As a result, we doubled up some errors. I'd also missed that we already have SSL_R_CLIENTHELLO_PARSE_FAILED. That said, which error to use is a little interesting. Some codepaths used to use SSL_R_DECODE_ERROR and some used SSL_R_CLIENTHELLO_PARSE_FAILED. Further complicating things is that some ClientHello error paths are unreachable because only the first time a ClientHello is parsed matters. But we have the second ClientHello in HRR and inner ClientHellos to content with. (A TLS connection can have up to four ClientHellos now!) I've erred towards picking the more specific one, given this whole mess. Update-Note: The error when the server cannot parse the ClientHello is now a bit more specific. This might be visible to server-specific logging, but will not change what is sent over the wire. Change-Id: I64a4305968616a9f414d3c95fb4ffbd1cfdc4ecc Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/76147 Auto-Submit: David Benjamin <[email protected]> Reviewed-by: Bob Beck <[email protected]> Commit-Queue: David Benjamin <[email protected]> Commit-Queue: Bob Beck <[email protected]>
- Loading branch information
Showing
6 changed files
with
17 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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