logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SSL_get0_connection, SSL_is_connection - get a QUIC connection SSL object from a QUIC stream SSL object

Description

       The SSL_get0_connection() function, when called on a QUIC stream SSL object, returns the QUIC connection
       SSL object which the QUIC stream SSL object belongs to.

       When called on a QUIC connection SSL object, it returns the same object.

       When called on a non-QUIC object, it returns the same object it was passed.

       SSL_is_connection() returns 1 for QUIC connection SSL objects and for non-QUIC SSL objects, but returns 0
       for QUIC stream SSL objects.

History

       These functions were added in OpenSSL 3.2.

Name

       SSL_get0_connection, SSL_is_connection - get a QUIC connection SSL object from a QUIC stream SSL object

Return Values

SSL_get0_connection() returns the QUIC connection SSL object (for a QUIC stream SSL object) and otherwise
       returns the same SSL object passed. It always returns non-NULL.

       SSL_is_connection() returns 1 if the SSL object is not a QUIC stream SSL object and 0 otherwise.

See Also

SSL_new(3), SSL_new_stream(3), SSL_accept_stream(3)

Synopsis

        #include <openssl/ssl.h>

        SSL *SSL_get0_connection(SSL *ssl);
        int SSL_is_connection(SSL *ssl);

See Also