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 — Support RFC 8879 Certificate Compression for TLSv1.3 (#614) by CamW · Pull Request #689 · netty/netty-tcnative

Conversation

@CamW

@CamW CamW commented Jan 6, 2022

Copy link
Copy Markdown
Contributor

Motivation:

Certificates in TLSv1.3 can be compressed but Netty does not yet support this. BoringSSL does support it and this change will use that support to provide an API which Netty can use to support certificate compression.

Modifications:

  • CertificateCompressionAlgo.java class to allow compression implementations to be built in Java.
  • Native addCertificateCompressionAlgorithm0 which allows registration of compression algorithms with BoringSSL.
  • JNI work to maintain Java compression algorithm callbacks and call them when BoringSSL needs a certificate compressed or decompressed.

Result:

New API, which Netty can use to provide support for certificate compression.

Sorry, something went wrong.

Uh oh!

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

All reactions
@CamW
Support RFC 8879 Certificate Compression for TLSv1.3 (netty#614)
1a85d78
Motivation:

Certificates in TLSv1.3 can be compressed but Netty does not yet support this. BoringSSL does support it and this change will use that support to provide an API which Netty can use to support certificate compression.

Modifications:

- `CertificateCompressionAlgo.java` class to allow compression implementations to be built in Java.
- Native `addCertificateCompressionAlgorithm0` which allows registration of compression algorithms with BoringSSL.
- JNI work to maintain Java compression algorithm callbacks and call them when BoringSSL needs a certificate compressed or decompressed.

Result:

New API, which Netty can use to provide support for certificate compression.
@CamW

CamW commented Jan 6, 2022 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor Author

It looks like testing is usually done on the netty repo for this sort of thing. I've got a commit for the integration into netty and testing available CamW/netty@7153b2e
That'll only work once this is available though.

All reactions

Sorry, something went wrong.

Uh oh!

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

@normanmaurer

normanmaurer commented Jan 13, 2022

Copy link
Copy Markdown
Member

@CamW there are build failures on windows:

NFO] 
23808
[INFO] "D:\a\netty-tcnative\netty-tcnative\boringssl-static\target\native-build\vs2010.vcxproj" (default target) (1) ->
23809
[INFO] (Link target) -> 
23810
[INFO]   sslcontext.obj : error LNK2001: unresolved external symbol brotli_decompress_java [D:\a\netty-tcnative\netty-tcnative\boringssl-static\target\native-build\vs2010.vcxproj]
23811
[INFO]   sslcontext.obj : error LNK2001: unresolved external symbol zlib_decompress_java [D:\a\netty-tcnative\netty-tcnative\boringssl-static\target\native-build\vs2010.vcxproj]
23812
[INFO]   sslcontext.obj : error LNK2001: unresolved external symbol zstd_compress_java [D:\a\netty-tcnative\netty-tcnative\boringssl-static\target\native-build\vs2010.vcxproj]
23813
[INFO]   sslcontext.obj : error LNK2001: unresolved external symbol zstd_decompress_java [D:\a\netty-tcnative\netty-tcnative\boringssl-static\target\native-build\vs2010.vcxproj]
23814
[INFO]   sslcontext.obj : error LNK2001: unresolved external symbol zlib_compress_java [D:\a\netty-tcnative\netty-tcnative\boringssl-static\target\native-build\vs2010.vcxproj]
23815
[INFO]   sslcontext.obj : error LNK2001: unresolved external symbol brotli_compress_java [D:\a\netty-tcnative\netty-tcnative\boringssl-static\target\native-build\vs2010.vcxproj]
23816
[INFO]   D:\a\netty-tcnative\netty-tcnative\boringssl-static\target\native-build\/target/x64-release/lib\netty_tcnative.dll : fatal error LNK1120: 6 unresolved externals [D:\a\netty-tcnative\netty-tcnative\boringssl-static\target\native-build\vs2010.vcxproj]
23817
[INFO] 
23818
[INFO]     40 Warning(s)
All reactions

Sorry, something went wrong.

Uh oh!

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

normanmaurer
normanmaurer requested changes Jan 13, 2022
View reviewed changes

@normanmaurer normanmaurer left a comment

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.

Great work!

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread openssl-dynamic/src/main/c/cert_compress.c Resolved

Uh oh!

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

Comment thread openssl-dynamic/src/main/c/cert_compress.c Resolved

Uh oh!

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

Comment thread openssl-dynamic/src/main/c/cert_compress.c Resolved

Uh oh!

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

Comment thread openssl-dynamic/src/main/c/sslcontext.c Resolved

Uh oh!

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

Comment thread openssl-dynamic/src/main/c/sslcontext.c Resolved

Uh oh!

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

Comment thread openssl-dynamic/src/main/c/sslcontext.c Resolved

Uh oh!

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

Comment thread openssl-dynamic/src/main/c/sslcontext.c Resolved

Uh oh!

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

Comment thread openssl-dynamic/src/main/c/sslcontext.c Resolved

Uh oh!

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

Comment thread openssl-dynamic/src/main/c/sslcontext.c Resolved

Uh oh!

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

@normanmaurer normanmaurer added this to the 2.0.48.Final milestone Jan 13, 2022
CamW and others added 3 commits January 13, 2022 21:32
@CamW
Include cert_compress.c in windows build.
77df7d0
@CamW @normanmaurer
Apply suggestions from code review
c8a5e57
Co-authored-by: Norman Maurer <[email protected]>
@CamW
Review requested changes.
efdf845
@CamW

CamW commented Jan 13, 2022

Copy link
Copy Markdown
Contributor Author

Thanks @normanmaurer for the review, it should be good now. I've tried but not got it building on windows, should just be that extra file. If that doesn't fix it, I'll get a local windows build working.

All reactions

Sorry, something went wrong.

Uh oh!

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

@CamW
CamW requested a review from normanmaurer January 13, 2022 20:47
normanmaurer
normanmaurer requested changes Jan 14, 2022
View reviewed changes
Comment thread openssl-classes/src/main/java/io/netty/internal/tcnative/CertificateCompressionAlgo.java Resolved

Uh oh!

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

normanmaurer
normanmaurer approved these changes Jan 17, 2022
View reviewed changes
@normanmaurer
normanmaurer merged commit 7fe0951 into netty:main Jan 17, 2022
@normanmaurer

normanmaurer commented Jan 17, 2022

Copy link
Copy Markdown
Member

Great work @CamW !

Can you open a PR against netty which consume this ?

All reactions

Sorry, something went wrong.

Uh oh!

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

@CamW CamW mentioned this pull request Jan 17, 2022
Support RFC 8879 Certificate Compression for TLSv1.3 netty/netty#12012
Merged
@normanmaurer normanmaurer mentioned this pull request Oct 30, 2026
jni util 0.0.12 #1039
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@normanmaurer normanmaurer normanmaurer approved these changes

Uh oh!

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

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

2.0.48.Final

Development

Successfully merging this pull request may close these issues.

Uh oh!

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

2 participants

@CamW @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.