-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Move conscrypt NONE checks internal to Handshake #4055
Conversation
@JakeWharton @swankjesse @dave-r12 If this is happening in 8.1.0, it would be good to get the right fix in for 3.11.0 as adoption increases. I'm not sure if this is it, or there is something else we should be doing to address #3973 |
Do you know if they documented this anywhere? What's the difference between |
I don't think this part is really documented at all. And since it's now baked into 8.1.0, there is no fix that makes our workaround not needed. |
I’d prefer to remove RealConnection.isValid() completely and moving both the cipher suite check and the version check into Handshake.get(). That way we only check once! |
@@ -46,13 +47,14 @@ private Handshake(TlsVersion tlsVersion, CipherSuite cipherSuite, | |||
this.localCertificates = localCertificates; | |||
} | |||
|
|||
public static Handshake get(SSLSession session) { | |||
public static Handshake get(SSLSession session) throws IOException { |
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.
Adding a checked exception isn’t source-compatible. I’m okay with that but we’ll need to call it out in the changelog.
This is a nice improvement. |
Hi, i found this issue: when got this issue, the host is null. that mean the SSLSession is error ?..?
|
Based on #3973, looks like this can still happen