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 — OpenSSL: Allow to obtain used named group via OpenSslSession by normanmaurer · Pull Request #17058 · netty/netty

OpenSSL: Allow to obtain used named group via OpenSslSession #17058

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
normanmaurer merged 4 commits into 4.2 from named_group
Aug 4, 2026

Uh oh!

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

Merged

OpenSSL: Allow to obtain used named group via OpenSslSession #17058

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit Hold shift + click to select a range
58d266f
OpenSSL: Allow to obtain used named group via OpenSslSession
normanmaurer Jul 6, 2026
b4e255c
Merge branch '4.2' into named_group
chrisvest Aug 3, 2026
c6349d2
Make the PkiTestingTlsTest pass with checking named group
chrisvest Aug 3, 2026
05df278
Properly handle null references
chrisvest Aug 4, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

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

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

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

Diff view
Diff view
Prev Previous commit
Next Next commit
Make the PkiTestingTlsTest pass with checking named group
  • Loading branch information

Uh oh!

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

@chrisvest
chrisvest committed Aug 3, 2026
commit c6349d2fb5ddee8adb40f0970743e0000fd9aaad

There are no files selected for viewing

4 changes: 4 additions & 0 deletions 4 handler/src/main/java/io/netty/handler/ssl/GroupsConverter.java
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ static String toOpenSsl(String key) {
return "P-521";
case "x25519":
return "X25519";
case "x448":
return "X448";
case "x25519mlkem786":
return "X25519MLKEM768";
default:
return key;
}
Expand Down
4 changes: 3 additions & 1 deletion 4 handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslEngine.java
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -2655,7 +2655,9 @@ public void handshakeFinished(byte[] id, String cipher, String protocol, byte[]
this.cipher = toJavaCipherSuite(cipher, protocol);
this.protocol = protocol;
try {
this.namedGroup = SSL.getGroupName(ssl);
String groupName = SSL.getGroupName(ssl);
groupName = GroupsConverter.toOpenSsl(groupName); // Normalize group name (BoringSSL/OpenSSL)
this.namedGroup = groupName;
} catch (Exception e) {
throw new SSLException(e);
}
Expand Down
15 changes: 3 additions & 12 deletions 15 handler/src/test/java/io/netty/handler/ssl/PkiTestingTlsTest.java
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,14 @@
import org.junit.jupiter.params.provider.ValueSource;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.TimeUnit;
import java.util.stream.Stream;
import javax.net.ssl.SNIHostName;
import javax.net.ssl.SSLParameters;
import javax.net.ssl.SSLSession;

import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.assertj.core.api.Assertions.assertThat;

public class PkiTestingTlsTest {

Expand Down Expand Up @@ -290,14 +289,7 @@ public void userEventTriggered(ChannelHandlerContext ctx, Object evt)
if (session instanceof OpenSslSession) {
String namedGroup = ((OpenSslSession) handler.engine()
.getSession()).getNamedGroup();
if (groups != null) {
assertTrue(Arrays.asList(groups).contains(namedGroup));
} else {
// If not specified explicit we will still use
// what we can support.
assertTrue(Arrays.asList(OpenSsl.NAMED_GROUPS)
.contains(namedGroup));
}
assertThat(OpenSsl.NAMED_GROUPS).contains(namedGroup);
}
promise.setSuccess(shce);
} else {
Expand All @@ -309,8 +301,7 @@ public void userEventTriggered(ChannelHandlerContext ctx, Object evt)
}

@Override
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause)
throws Exception {
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
if (!promise.tryFailure(cause)) {
ctx.fireExceptionCaught(cause);
}
Expand Down
Loading
Oops, something went wrong.

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.