Repository navigation
Throw if SSLParameters contains settings that are not supported by Re… - #6439
Closed
normanmaurer wants to merge 1 commit into
Closed
normanmaurer wants to merge 1 commit into
normanmaurer wants to merge 1 commit into
Conversation
Member
Author
|
@nmittler you may want to do the same in conscrypt |
trustin
reviewed
Feb 23, 2017
Member
There was a problem hiding this comment.
How about append a dot(.) since this is a sentence?
Member
There was a problem hiding this comment.
How about joining with the previous line?
…ferenceCountedOpenSslEngine Motivation: We not support all SSLParameters settings so we should better throw if a user try to use them. Modifications: - Check for unsupported parameters - Add unit test Result: Less surprising behavior.
normanmaurer
force-pushed
the
throw_unsupported_params
branch
from
February 23, 2017 09:34
aa900de to
d5d0424
Compare
normanmaurer
commented
Feb 23, 2017
| if (version >= 8) { | ||
| Collection<SNIMatcher> matchers = sslParameters.getSNIMatchers(); | ||
| if (matchers != null && !matchers.isEmpty()) { | ||
| throw new IllegalArgumentException("SNIMatchers are not supported."); |
Member
Author
There was a problem hiding this comment.
@Scottmitch FYI we can easily support SNIMatchers tho with a few changes in netty-tcnative. But I would like to fix this after this is pulled in as this needs more testing etc.
Scottmitch
approved these changes
Feb 23, 2017
Member
Author
Member
|
@normanmaurer added it to the list in google/conscrypt#31. Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…ferenceCountedOpenSslEngine
Motivation:
We not support all SSLParameters settings so we should better throw if a user try to use them.
Modifications:
Result:
Less surprising behavior.