GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||
GeezerVison is showing github.com — Getting protocol for session by fondemen · Pull Request #1 · netty/netty-tcnative Conversation
Contributor
This simple pach would make possible to know what protocol is in use for a session. If pulled, onc could later change OpenSslEngine.getSession() with: instead of the current code
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please call it getVersion as we usually use the same method names for java and c.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. TLSv1.2 or SSLv3) Motivation: It is possible to check what is the chosen cipher for an SSL session, which is properly reported in netty using the OpenSSL implementation for SSLSession. However, protocol is reported as unknown. If using the JDK implementation, it is correctly reported such as as SSLv3. Knowing the session protocol can help in managing security properly, e.g. for accepting SSLv3 or TLSv1 in some parts of an application for compatibility, and allowing only TLSv1.1 or TLSv1.2 for more secured parts, such as user authentication. Modifications: Just adding a new native operation to SSL to quary protocol of an existing session thanks to its id. Result: It will be possible to implement getProtocol for the OpenSslEngine.getSession().getProtocol() so that it has same behavior as JDK implementation.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Call it getVersion(...)
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. TLSv1.2 or SSLv3) Motivation: It is possible to check what is the chosen cipher for an SSL session, which is properly reported in netty using the OpenSSL implementation for SSLSession. However, protocol is reported as unknown. If using the JDK implementation, it is correctly reported such as as SSLv3. Knowing the session protocol can help in managing security properly, e.g. for accepting SSLv3 or TLSv1 in some parts of an application for compatibility, and allowing only TLSv1.1 or TLSv1.2 for more secured parts, such as user authentication. Modifications: Just adding a new native operation to SSL to quary protocol of an existing session thanks to its id. Result: It will be possible to implement getProtocol for the OpenSslEngine.getSession().getProtocol() so that it has same behavior as JDK implementation.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersNo reviewsUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. 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. | |||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |