Home / Function/ testTlsLessThan13() — netty Function Reference

testTlsLessThan13() — netty Function Reference

Architecture documentation for the testTlsLessThan13() function in OpenSslCertificateCompressionTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  2a16e92e_f131_81da_847a_0897a58b2197["testTlsLessThan13()"]
  7111b952_7007_d5c2_8ec1_ca1531aba650["OpenSslCertificateCompressionTest"]
  2a16e92e_f131_81da_847a_0897a58b2197 -->|defined in| 7111b952_7007_d5c2_8ec1_ca1531aba650
  03f43b9a_8720_381a_6b49_75148cbb5e23["runCertCompressionTest()"]
  2a16e92e_f131_81da_847a_0897a58b2197 -->|calls| 03f43b9a_8720_381a_6b49_75148cbb5e23
  12bba89c_fd5a_d40e_a7cd_57aba7db2bfd["assertNone()"]
  2a16e92e_f131_81da_847a_0897a58b2197 -->|calls| 12bba89c_fd5a_d40e_a7cd_57aba7db2bfd
  style 2a16e92e_f131_81da_847a_0897a58b2197 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/test/java/io/netty/handler/ssl/OpenSslCertificateCompressionTest.java lines 223–251

    @Test
    public void testTlsLessThan13() throws Throwable {
        assumeTrue(OpenSsl.isBoringSSL() || OpenSsl.isAWSLC());
        final SslContext clientSslContext = SslContextBuilder.forClient()
             .sslProvider(SslProvider.OPENSSL)
             .protocols(SslProtocols.TLS_v1_2)
             .trustManager(InsecureTrustManagerFactory.INSTANCE)
             .option(OpenSslContextOption.CERTIFICATE_COMPRESSION_ALGORITHMS,
                     OpenSslCertificateCompressionConfig.newBuilder()
                             .addAlgorithm(testBrotliAlgoClient,
                                     OpenSslCertificateCompressionConfig.AlgorithmMode.Decompress)
                             .build())
             .build();
        final SslContext serverSslContext = SslContextBuilder.forServer(cert.key(), cert.cert())
               .sslProvider(SslProvider.OPENSSL)
               .protocols(SslProtocols.TLS_v1_2)
               .option(OpenSslContextOption.CERTIFICATE_COMPRESSION_ALGORITHMS,
                       OpenSslCertificateCompressionConfig.newBuilder()
                               .addAlgorithm(testBrotliAlgoServer,
                                       OpenSslCertificateCompressionConfig.AlgorithmMode.Compress)
                               .build())
               .build();

        runCertCompressionTest(clientSslContext, serverSslContext);

        // BoringSSL returns success when calling SSL_CTX_add_cert_compression_alg
        // but only applies compression for TLSv1.3
        assertNone(testBrotliAlgoClient, testBrotliAlgoServer);
    }

Domain

Subdomains

Frequently Asked Questions

What does testTlsLessThan13() do?
testTlsLessThan13() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/OpenSslCertificateCompressionTest.java.
Where is testTlsLessThan13() defined?
testTlsLessThan13() is defined in handler/src/test/java/io/netty/handler/ssl/OpenSslCertificateCompressionTest.java at line 223.
What does testTlsLessThan13() call?
testTlsLessThan13() calls 2 function(s): assertNone, runCertCompressionTest.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free