Home / Function/ doesSupportProtocol() — netty Function Reference

doesSupportProtocol() — netty Function Reference

Architecture documentation for the doesSupportProtocol() function in OpenSsl.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  ec953bb5_8bd4_4eb1_d6b7_ae732ff5f407["doesSupportProtocol()"]
  ed038636_6deb_9fdb_0fd6_26635e25e0e6["OpenSsl"]
  ec953bb5_8bd4_4eb1_d6b7_ae732ff5f407 -->|defined in| ed038636_6deb_9fdb_0fd6_26635e25e0e6
  style ec953bb5_8bd4_4eb1_d6b7_ae732ff5f407 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/ssl/OpenSsl.java lines 579–595

    private static boolean doesSupportProtocol(int protocol, int opt) {
        if (opt == 0) {
            // If the opt is 0 the protocol is not supported. This is for example the case with BoringSSL and SSLv2.
            return false;
        }
        long sslCtx = -1;
        try {
            sslCtx = SSLContext.make(protocol, SSL.SSL_MODE_COMBINED);
            return true;
        } catch (Exception ignore) {
            return false;
        } finally {
            if (sslCtx != -1) {
                SSLContext.free(sslCtx);
            }
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does doesSupportProtocol() do?
doesSupportProtocol() is a function in the netty codebase, defined in handler/src/main/java/io/netty/handler/ssl/OpenSsl.java.
Where is doesSupportProtocol() defined?
doesSupportProtocol() is defined in handler/src/main/java/io/netty/handler/ssl/OpenSsl.java at line 579.

Analyze Your Own Codebase

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

Try Supermodel Free