Add OSSL_QUIC_method

Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27397)
This commit is contained in:
Neil Horman
2025-04-10 09:12:11 -04:00
parent 64e96ecf3c
commit e3e3713822
3 changed files with 17 additions and 1 deletions

View File

@@ -51,7 +51,8 @@ struct ssl_connection_st *ossl_quic_obj_get0_handshake_layer(QUIC_OBJ *obj);
# define IS_QUIC_METHOD(m) \
((m) == OSSL_QUIC_client_method() || \
(m) == OSSL_QUIC_client_thread_method() || \
(m) == OSSL_QUIC_server_method())
(m) == OSSL_QUIC_server_method() || \
(m) == OSSL_QUIC_method())
# define IS_QUIC_CTX(ctx) IS_QUIC_METHOD((ctx)->method)

View File

@@ -67,6 +67,11 @@ __owur const SSL_METHOD *OSSL_QUIC_client_thread_method(void);
*/
__owur const SSL_METHOD *OSSL_QUIC_server_method(void);
/*
* Method used for QUIC client/server connection
*/
__owur const SSL_METHOD *OSSL_QUIC_method(void);
# ifdef __cplusplus
}
# endif