Skip to content

Support renegotiation with sockets - #321

Merged
nmittler merged 2 commits into
google:masterfrom
nmittler:renegotiation
Sep 13, 2017
Merged

nmittler merged 2 commits into
google:masterfrom
nmittler:renegotiation

Conversation

@nmittler

@nmittler nmittler commented Aug 31, 2017 •

Copy link
Copy Markdown
Contributor

Fixes #228
Fixes #310

@nmittler nmittler added this to the 1.0.0 milestone Aug 31, 2017
@nmittler nmittler self-assigned this Aug 31, 2017
@nmittler
nmittler requested a review from davidben August 31, 2017 14:50
@nmittler

Copy link
Copy Markdown
Contributor Author

@davidben FYI I've also added tests to the engine and it now supports renegotiation. Will address the engine-based socket in a follow-on PR.

@nmittler nmittler changed the title Adding test for renegotiation. Support renegotiation with sockets Sep 7, 2017
@nmittler
nmittler requested a review from flooey September 8, 2017 11:20
@nmittler

nmittler commented Sep 8, 2017

Copy link
Copy Markdown
Contributor Author

@flooey mind taking a look? I'd like to get these fixes in for the next RC

server.await(5, TimeUnit.SECONDS);
repliesFuture.get(5, TimeUnit.SECONDS);

// BoringSSL will not call the verify callback on renegotiation, so the client will never

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This seems like a problem. Won't our getters just be lying then? I don't know if there's any BoringSSL changes coming on this or anything, but having getCipherSuite() (and maybe others) returning values that are just untrue seems like a bad idea.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@flooey this was actually due to the fact that we were caching the cipher in our ActiveSession. That seems to be the only potential caching issue, since BoringSSL won't let the other values change (peer cipher suite, etc.). This should b fixed now.

@nmittler

Copy link
Copy Markdown
Contributor Author

@flooey PTAL

@nmittler
nmittler merged commit 047b527 into google:master Sep 13, 2017
nmittler added a commit to nmittler/conscrypt that referenced this pull request Sep 15, 2017
The cipher used in the benchmarks requires TLS 1.2.
nmittler pushed a commit that referenced this pull request Sep 15, 2017
nmittler pushed a commit that referenced this pull request Sep 16, 2017
The cipher used in the benchmarks requires TLS 1.2.
nmittler pushed a commit that referenced this pull request Sep 25, 2017
The cipher used in the benchmarks requires TLS 1.2.
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