Skip to content

Commit

Permalink
QUIC Dispatch: Add simple way to determine if SSL object is QUIC-related
Browse files Browse the repository at this point in the history
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from #20765)
  • Loading branch information
hlandau committed May 12, 2023
1 parent 072328d commit 3e5a47d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ssl/quic/quic_local.h
Expand Up @@ -179,10 +179,15 @@ void ossl_quic_conn_on_remote_conn_close(QUIC_CONNECTION *qc,
: ((ssl)->type == SSL_TYPE_QUIC_CONNECTION \
? (c SSL_CONNECTION *)((c QUIC_CONNECTION *)(ssl))->tls \
: NULL))

# define IS_QUIC(ssl) ((ssl) != NULL \
&& ((ssl)->type == SSL_TYPE_QUIC_CONNECTION \
|| (ssl)->type == SSL_TYPE_QUIC_XSO))
# else
# define QUIC_CONNECTION_FROM_SSL_int(ssl, c) NULL
# define QUIC_XSO_FROM_SSL_int(ssl, c) NULL
# define SSL_CONNECTION_FROM_QUIC_SSL_int(ssl, c) NULL
# define IS_QUIC(ssl) 0
# endif

# define QUIC_CONNECTION_FROM_SSL(ssl) \
Expand Down

0 comments on commit 3e5a47d

Please sign in to comment.