Skip to content

Return an ExtendSSLSession whenever possible to allow more strict che…#8281

Merged
normanmaurer merged 1 commit into4.1from
extended_ssl_session
Sep 14, 2018
Merged

Return an ExtendSSLSession whenever possible to allow more strict che…#8281
normanmaurer merged 1 commit into4.1from
extended_ssl_session

Conversation

@normanmaurer
Copy link
Copy Markdown
Member

…cking when using OpenSSL

Motivation:

When an ExtendedSSLSession is used its possible to do more strict checking of the keys during handshake. We should do this whenever possible.

Modification:

  • Return an ExtendedSSLSession when using client-mode and Java7+
  • Add unit test
  • Simplify unit tests

Result:

More consistent behaviour.

Copy link
Copy Markdown
Member

@carl-mastrangelo carl-mastrangelo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Assert.assertNotNull(session);
if (session instanceof ExtendedSSLSession) {
ExtendedSSLSession extendedSSLSession = (ExtendedSSLSession) session;
List<SNIServerName> names = extendedSSLSession.getRequestedServerNames();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

double space after =

…cking when using OpenSSL

Motivation:

When an ExtendedSSLSession is used its possible to do more strict checking of the keys during handshake. We should do this whenever possible.

Modification:

- Return an ExtendedSSLSession when using client-mode and Java7+
- Add unit test
- Simplify unit tests

Result:

More consistent behaviour.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants