SSL_NEW_DOMAIN(3ossl)
π NAME π
hey bestie, welcome to SSL_NEW_DOMAIN(3ossl) from the OpenSSL manual β¨ this page is literally the SSL object interface for managing QUIC event domains, and it covers SSL_new_domain, SSL_is_domain, and SSL_get0_domain. iykyk π
π¦ SYNOPSIS π¦
#include <openssl/ssl.h>
SSL *SSL_new_domain(SSL_CTX *ctx, uint64_t flags);
int SSL_is_domain(SSL *ssl);
SSL *SSL_get0_domain(SSL *ssl);
πΈ DESCRIPTION πΈ
okay so the SSL_new_domain() function creates a new QUIC event domain, represented as an SSL object. this is known as a QUIC domain SSL object (QDSO) π the whole concept of a QUIC event domain is discussed in detail in openssl-quic-concurrency(7).
the flags argument to SSL_new_domain() specifies a set of domain flags. if the flags argument to SSL_new_domain() does not specify one of the flags SSL_DOMAIN_FLAG_SINGLE_THREAD, SSL_DOMAIN_FLAG_MULTI_THREAD or SSL_DOMAIN_FLAG_THREAD_ASSISTED, the domain flags configured on the SSL_CTX are inherited as a default and any other flags in flags are added to the set of inherited flags. otherwise, the domain flags in flags are used. see SSL_CTX_set_domain_flags(3) for details of the available domain flags and how they can be configured on a SSL_CTX π
a QUIC domain SSL object can be managed in the same way as any other SSL object, in that it can be refcounted and freed normally. a QUIC domain SSL object is the parent of a number of child objects such as QUIC listener SSL objects. once a QUIC domain SSL object has been created, a listener can be created under it using SSL_new_listener_from(3) π
SSL_is_domain() returns 1 if a SSL object is a QUIC domain SSL object.
SSL_get0_domain() obtains a pointer to the QUIC domain SSL object in a SSL object hierarchy (if any) π«Ά
all SSL objects in a QUIC event domain use the same domain flags, and the domain flags for a QUIC domain cannot be changed after construction. periodt π
π Supported Operations π
a QUIC domain SSL object exists to contain other QUIC SSL objects and provide unified event handling. as such, it supports only the following operations:
- standard reference counting and free operations, such as
SSL_up_ref(3)andSSL_free(3); - event processing and polling enablement APIs such as
SSL_handle_events(3), andSSL_get_event_timeout(3); - creating listeners under the domain using
SSL_new_listener_from(3).
the basic workflow of using a domain object is as follows:
- create a new domain object using
SSL_new_domain()using aSSL_CTXwhich uses a supportedSSL_METHOD(such asOSSL_QUIC_server_method(3)); - create listeners under the domain using
SSL_new_listener_from(3).
refer to SSL_new_listener_from(3) for details on using listeners π
currently, domain SSL objects are only supported for QUIC usage via any QUIC SSL_METHOD β¨
π RETURN VALUES π
SSL_new_domain()returns a new domain SSL object orNULLon failure.SSL_is_domain()returns0or1depending on the type of the SSL object on which it is called.SSL_get0_domain()returns an SSL object pointer (potentially to the same object on which it is called) orNULL.
π¦ SEE ALSO π¦
SSL_new_listener_from(3)SSL_handle_events(3)SSL_CTX_set_domain_flags(3)openssl-quic-concurrency(7)
β HISTORY β
these functions were added in OpenSSL 3.5.
π COPYRIGHT π
Copyright 2024-2025 The OpenSSL Project Authors. All Rights Reserved.
licensed under the Apache License 2.0 (the "License"). you may not use this file except in compliance with the License. you can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.
and thatβs the page, bestie! this cut is OpenSSL 3.5.6, dated 2026-04-07 β mwah, go slay those QUIC domains πβ¨π
π¦ where this page comes from
- freebsd 15.1: base 15.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms