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 — Port over AWS-LC changes to main by chrisvest · Pull Request #15455 · netty/netty

Port over AWS-LC changes to main #15455

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
chrisvest merged 3 commits into netty:main from chrisvest:5x-aws-lc
Jul 9, 2025

Uh oh!

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

Merged

Port over AWS-LC changes to main #15455

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit Hold shift + click to select a range
9bfbcbe
Support for AWS Libcrypto (AWS-LC) netty-tcnative build (#15430)
skmcgrail Jul 7, 2025
717861c
Cleanup SocketSslClientRenegotiateTest with OpenSsl predicate (#15451)
chrisvest Jul 8, 2025
8e3630a
Bump Java version for the Amazon Linux/AWS-LC build
chrisvest Jul 8, 2025
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
Cleanup SocketSslClientRenegotiateTest with OpenSsl predicate (#15451)
Motivation:
Using the `OpenSsl.versionString()` to sniff features is fragile. Let's
add a specific predicate for renegotiation instead.

Modification:
Add an `OpenSsl.isRenegotiationSupported` predicate, and use it in the
`SocketSslClientRenegotiateTest`.

Result:
Cleaner code.
  • Loading branch information

Uh oh!

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

@chrisvest
chrisvest committed Jul 9, 2025
commit 717861ca076060d21846e787270f3dd6c095eee2

There are no files selected for viewing

11 changes: 11 additions & 0 deletions 11 handler/src/main/java/io/netty5/handler/ssl/OpenSsl.java
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,17 @@ public static boolean isOcspSupported() {
return SUPPORTS_OCSP;
}

/**
* Returns {@code true} if the used version of OpenSSL supports renegotiation.
* <p>
* Some implementations, such as BoringSSL and AWS-LC, intentionally do not support renegotiation.
*
* @return {@code true} if renegotiation is supported, otherwise {@code false}.
*/
public static boolean isRenegotiationSupported() {
return !IS_BORINGSSL && !IS_AWSLC;
}

/**
* Returns the version of the used available OpenSSL library or {@code -1} if {@link #isAvailable()}
* returns {@code false}.
Expand Down
10 changes: 5 additions & 5 deletions 10 ...te/src/main/java/io/netty5/testsuite/transport/socket/SocketSslClientRenegotiateTest.java
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
import static org.junit.jupiter.api.Assertions.assertInstanceOf;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.fail;
import static org.junit.jupiter.api.Assumptions.assumeFalse;
import static org.junit.jupiter.api.Assumptions.assumeTrue;

public class SocketSslClientRenegotiateTest extends AbstractSocketTest {
private static final Logger logger = LoggerFactory.getLogger(SocketSslClientRenegotiateTest.class);
Expand Down Expand Up @@ -126,10 +126,10 @@ public static Collection<Object[]> data() throws Exception {
@ParameterizedTest(name = "{index}: serverEngine = {0}, clientEngine = {1}, delegate = {2}")
@MethodSource("data")
@Timeout(value = 30000, unit = TimeUnit.MILLISECONDS)
public void testSslRenegotiationRejected(SslContext serverCtx, SslContext clientCtx, boolean delegate,
TestInfo testInfo) throws Throwable {
// BoringSSL does not support renegotiation intentionally.
assumeFalse("BoringSSL".equals(OpenSsl.versionString()) || OpenSsl.versionString().startsWith("AWS-LC"));
public void testSslRenegotiationRejected(final SslContext serverCtx, final SslContext clientCtx,
final boolean delegate, TestInfo testInfo) throws Throwable {
assumeTrue(OpenSsl.isRenegotiationSupported());
assumeTrue(OpenSsl.isAvailable());
run(testInfo, (sb, cb) -> testSslRenegotiationRejected(sb, cb, serverCtx, clientCtx, delegate));
}

Expand Down
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 01402860 — 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.