Home / Function/ probeForSSLv2() — netty Function Reference

probeForSSLv2() — netty Function Reference

Architecture documentation for the probeForSSLv2() function in SslUtilsTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  93596674_3d67_2f40_8b76_8943d94c7839["probeForSSLv2()"]
  48820ee9_de8c_874d_12df_29f6fb10052e["SslUtilsTest"]
  93596674_3d67_2f40_8b76_8943d94c7839 -->|defined in| 48820ee9_de8c_874d_12df_29f6fb10052e
  style 93596674_3d67_2f40_8b76_8943d94c7839 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/test/java/io/netty/handler/ssl/SslUtilsTest.java lines 169–180

    @ParameterizedTest
    @ValueSource(booleans = { false, true })
    public void probeForSSLv2(boolean probeSSLv2) {
        ByteBuf buf = Unpooled.wrappedBuffer(new byte[] { 0x30, (byte) 0x82, 0x0c, 0x48, 0x02, 0x01, 0x01, 0x01 });
        int packetLength = getEncryptedPacketLength(buf, 0, probeSSLv2);
        if (probeSSLv2) {
            assertNotEquals(NOT_ENCRYPTED, packetLength);
        } else {
            assertEquals(NOT_ENCRYPTED, packetLength);
        }
        buf.release();
    }

Domain

Subdomains

Frequently Asked Questions

What does probeForSSLv2() do?
probeForSSLv2() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/SslUtilsTest.java.
Where is probeForSSLv2() defined?
probeForSSLv2() is defined in handler/src/test/java/io/netty/handler/ssl/SslUtilsTest.java at line 169.

Analyze Your Own Codebase

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

Try Supermodel Free