GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Getting protocol for session by fondemen · Pull Request #1 · netty/netty-tcnative

Conversation

@fondemen

@fondemen fondemen commented Oct 23, 2014

Copy link
Copy Markdown
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:
SSLSession session = this.session;
if (session == null) {
this.session = session = new SSLSession() {
...
public String getProtocol() {
SSL.getProtocolForSSL(ssl);
}

instead of the current code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@fondemen
Getting protocol for session
74f0b3f
normanmaurer
normanmaurer reviewed Oct 23, 2014
View reviewed changes
Comment thread src/main/c/ssl.c Outdated

@normanmaurer normanmaurer Oct 23, 2014

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The 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
@normanmaurer

normanmaurer commented Oct 23, 2014

Copy link
Copy Markdown
Member

@fondemen can you please adjust the commit message to match our template:
http://netty.io/wiki/writing-a-commit-message.html

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@fondemen
Making possible to have access to the chose session protocol (e.g.
db64da5
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.
@fondemen

fondemen commented Oct 23, 2014

Copy link
Copy Markdown
Contributor Author

Corrections made to match your expectations.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

normanmaurer
normanmaurer reviewed Oct 23, 2014
View reviewed changes
Comment thread src/main/c/ssl.c Outdated

@normanmaurer normanmaurer Oct 23, 2014

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The 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
@normanmaurer

normanmaurer commented Oct 23, 2014

Copy link
Copy Markdown
Member

@fondemen also please squash commits into 1

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@fondemen
Making possible to have access to the chose session protocol (e.g. …
82175e4
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.
@fondemen fondemen closed this Oct 28, 2014
@zeewane zeewane mentioned this pull request Dec 15, 2017
netty-tcnative build on centos 5.11 failure : Could not find artifact io.netty:netty-tcnative-openssl-static:zip #324
Closed
@sauroter sauroter mentioned this pull request Feb 5, 2018
libnetty-tcnative-linux-x86_64 SIGSEGV "Register to memory mapping:" #330
Closed
@NickNYU NickNYU mentioned this pull request Jul 31, 2018
Issue: fail to load the required native library #375
Closed
@rashmi-ibm rashmi-ibm mentioned this pull request Nov 12, 2019
Error building BoringSSL in a ubi based docker container. #507
Closed
@xushirain xushirain mentioned this pull request Mar 10, 2020
Failed to load any of the given libraries: [netty_tcnative_linux_ppcle_64, netty_tcnative_linux_ppcle_64_fedora, netty_tcnative_ppcle_64, netty_tcnative] #531
Open
@morvael morvael mentioned this pull request Jul 14, 2023
Problem compiling under ppc64le #800
Closed
@zfrenette zfrenette mentioned this pull request Aug 19, 2026
JVM SIGSEGV in jni_CallIntMethod during ReferenceCountedOpenSslEngine.unwrap / SSL.readFromSSL (netty-tcnative 2.0.77.Final, OpenSSL, netty 4.2.15.Final) #998
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@fondemen @normanmaurer
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.