Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22674)
# define QUIC_CHANNEL_STATE_TERMINATED 4
typedef struct quic_channel_args_st {
+ QUIC_PORT *port;
+
OSSL_LIB_CTX *libctx;
const char *propq;
int is_server;
int ossl_quic_channel_is_handshake_complete(const QUIC_CHANNEL *ch);
int ossl_quic_channel_is_handshake_confirmed(const QUIC_CHANNEL *ch);
+QUIC_PORT *ossl_quic_channel_get0_port(QUIC_CHANNEL *ch);
QUIC_DEMUX *ossl_quic_channel_get0_demux(QUIC_CHANNEL *ch);
SSL *ossl_quic_channel_get0_ssl(QUIC_CHANNEL *ch);
if ((ch = OPENSSL_zalloc(sizeof(*ch))) == NULL)
return NULL;
+ ch->port = args->port;
ch->libctx = args->libctx;
ch->propq = args->propq;
ch->is_server = args->is_server;
return ch->demux;
}
+QUIC_PORT *ossl_quic_channel_get0_port(QUIC_CHANNEL *ch)
+{
+ return ch->port;
+}
+
CRYPTO_MUTEX *ossl_quic_channel_get_mutex(QUIC_CHANNEL *ch)
{
return ch->mutex;
* Other components should not include this header.
*/
struct quic_channel_st {
+ QUIC_PORT *port;
+
OSSL_LIB_CTX *libctx;
const char *propq;