-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
remove support for Ssl2 #64322
remove support for Ssl2 #64322
Conversation
Tagging subscribers to this area: @dotnet/ncl, @vcsjones Issue Detailsfixes #35942 we may add test to verify we throw something reasonable if only
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One question, otherwise LGTM
|
||
if (_lastFrame.Header.Length < 0) | ||
{ | ||
if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, "invalid TLS frame size"); | ||
throw new IOException(SR.net_frame_read_size); | ||
throw new AuthenticationException(SR.net_frame_read_size); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why to change this exception when you leave IOException in GetFrameSize?
In other words: What is the rule to throw IOException vs. AuthenticationException?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ServerAsyncAuthenticate_InvalidHello_Throws checks for the exception type. In the past we can get one or the other depending on connection management. So I had to choose. Since getting invalid length did not feel like IO problem, I decided to use AuthenticationException
failing cryptography test is #64389 |
fixes #35942
we may add test to verify we throw something reasonable if only
SslProtocols.Ssl2
is requested but I'm not sure if it is worth of the effort.