Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21715)
{
SSL_CTX *ctx;
+#ifdef USE_QUIC
+ ctx = SSL_CTX_new(QUIC_client_thread_method());
+#else
ctx = SSL_CTX_new(TLS_client_method());
+#endif
if (ctx == NULL)
return NULL;
*/
int get_conn_fd(APP_CONN *conn)
{
+#ifdef USE_QUIC
+ return BIO_get_poll_fd(conn->ssl_bio, NULL);
+#else
return BIO_get_fd(conn->ssl_bio, NULL);
+#endif
}
/*
*/
int get_conn_pending_tx(APP_CONN *conn)
{
+#ifdef USE_QUIC
+ return POLLIN | POLLOUT | POLLERR;
+#else
return (conn->tx_need_rx ? POLLIN : 0) | POLLOUT | POLLERR;
+#endif
}
int get_conn_pending_rx(APP_CONN *conn)