Skip to content

Add methods / interfaces to write external SSL_SESSION cache and so b…#548

Merged
normanmaurer merged 4 commits intomasterfrom
session_reuse
Jun 4, 2020
Merged

Add methods / interfaces to write external SSL_SESSION cache and so b…#548
normanmaurer merged 4 commits intomasterfrom
session_reuse

Conversation

@normanmaurer
Copy link
Copy Markdown
Member

…e able to re-use SSL_SESSION on the client side as well.

Motivation:

While OpenSSL / BoringSSL / LibreSSL maintain an internal cache for the SSL_SESSIONs on the serverside it needs an external cache for the SSL_SESSION when we want to re-use these on the client side.

Modifications:

  • Add SSLSessionCache interface that can be implemented and so provide an external cache
  • Add SSLSession class which contains native method definitions to deal with SSL_SESSION

Result:

Be able to cache SSL_SESSION via an external cache implementation and so reuse SSL_SESSION on the client side as well

@normanmaurer normanmaurer marked this pull request as draft May 18, 2020 11:29
@normanmaurer normanmaurer force-pushed the session_reuse branch 4 times, most recently from 1e0b38f to 326d7bc Compare May 28, 2020 12:31
@normanmaurer normanmaurer marked this pull request as ready for review May 28, 2020 13:08
…e able to re-use SSL_SESSION on the client side as well.

Motivation:

While OpenSSL / BoringSSL / LibreSSL maintain an internal cache for the SSL_SESSIONs on the serverside it needs an external cache for the SSL_SESSION when we want to re-use these on the client side.

Modifications:

- Add SSLSessionCache interface that can be implemented and so provide an external cache
- Add SSLSession class which contains native method definitions to deal with SSL_SESSION
- Add other missing methods to SSL and SSLContext (+ the native implementations)

Result:

Be able to cache SSL_SESSION via an external cache implementation and so reuse SSL_SESSION on the client side as well
@normanmaurer
Copy link
Copy Markdown
Member Author

@mpenick any other comments ?

@normanmaurer normanmaurer added this to the 2.0.31.Final milestone Jun 2, 2020
Copy link
Copy Markdown
Member

@idelpivnitskiy idelpivnitskiy left a comment

Choose a reason for hiding this comment

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

Overall LGTM, but my JNI skills are not trained :)

@mpenick
Copy link
Copy Markdown

mpenick commented Jun 3, 2020

LGTM!

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.

Overall looks good. I did have two comments.

@normanmaurer normanmaurer self-assigned this Jun 4, 2020
@normanmaurer normanmaurer merged commit 5d39363 into master Jun 4, 2020
@normanmaurer normanmaurer deleted the session_reuse branch June 4, 2020 12:10
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.

4 participants