Skip to content

Commit e801455

Browse files
committed
QUIC CHANNEL: Consolidate forward object declarations in a single header
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from openssl#22674)
1 parent 26624ca commit e801455

5 files changed

Lines changed: 49 additions & 6 deletions

File tree

include/internal/quic_channel.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212

1313
# include <openssl/ssl.h>
1414
# include "internal/quic_types.h"
15-
# include "internal/quic_stream_map.h"
16-
# include "internal/quic_reactor.h"
17-
# include "internal/quic_statm.h"
15+
# include "internal/quic_record_tx.h"
16+
# include "internal/quic_wire.h"
17+
# include "internal/quic_predef.h"
1818
# include "internal/time.h"
1919
# include "internal/thread.h"
2020

include/internal/quic_predef.h

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
* Copyright 2023 The OpenSSL Project Authors. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License 2.0 (the "License"). You may not use
5+
* this file except in compliance with the License. You can obtain a copy
6+
* in the file LICENSE in the source distribution or at
7+
* https://www.openssl.org/source/license.html
8+
*/
9+
10+
#ifndef OSSL_QUIC_PREDEF_H
11+
# define OSSL_QUIC_PREDEF_H
12+
13+
# ifndef OPENSSL_NO_QUIC
14+
15+
typedef struct quic_port_st QUIC_PORT;
16+
typedef struct quic_channel_st QUIC_CHANNEL;
17+
typedef struct quic_tls_st QUIC_TLS;
18+
typedef struct quic_txpim_st QUIC_TXPIM;
19+
typedef struct quic_cfq_st QUIC_CFQ;
20+
typedef struct ossl_quic_tx_packetiser_st OSSL_QUIC_TX_PACKETISER;
21+
typedef struct ossl_ackm_st OSSL_ACKM;
22+
typedef struct quic_srt_elem_st QUIC_SRT_ELEM;
23+
typedef struct ossl_cc_data_st OSSL_CC_DATA;
24+
typedef struct ossl_cc_method_st OSSL_CC_METHOD;
25+
typedef struct quic_stream_map_st QUIC_STREAM_MAP;
26+
typedef struct quic_stream_st QUIC_STREAM;
27+
typedef struct quic_sstream_st QUIC_SSTREAM;
28+
typedef struct quic_rstream_st QUIC_RSTREAM;
29+
typedef struct quic_reactor_st QUIC_REACTOR;
30+
typedef struct ossl_statm_st OSSL_STATM;
31+
typedef struct quic_demux_st QUIC_DEMUX;
32+
typedef struct ossl_qrx_pkt_st OSSL_QRX_PKT;
33+
typedef struct ossl_qtx_pkt_st OSSL_QTX_PKT;
34+
typedef struct quic_tick_result_st QUIC_TICK_RESULT;
35+
typedef struct quic_srtm_st QUIC_SRTM;
36+
typedef struct quic_lcidm_st QUIC_LCIDM;
37+
typedef struct quic_urxe_st QUIC_URXE;
38+
39+
# endif
40+
41+
#endif

ssl/quic/quic_channel_local.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
# include <openssl/lhash.h>
99
# include "internal/list.h"
10-
11-
12-
typedef struct quic_srt_elem_st QUIC_SRT_ELEM;
10+
# include "internal/quic_predef.h"
11+
# include "internal/quic_fc.h"
12+
# include "internal/quic_stream_map.h"
1313

1414
struct quic_srt_elem_st {
1515
OSSL_LIST_MEMBER(stateless_reset_tokens, QUIC_SRT_ELEM);

test/quic_multistream_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include "internal/quic_tserver.h"
1414
#include "internal/quic_ssl.h"
1515
#include "internal/quic_error.h"
16+
#include "internal/quic_stream_map.h"
1617
#include "testutil.h"
1718
#include "helpers/quictestlib.h"
1819
#if defined(OPENSSL_THREADS)

util/quicserver.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "internal/e_os.h"
2020
#include "internal/sockets.h"
2121
#include "internal/quic_tserver.h"
22+
#include "internal/quic_stream_map.h"
2223
#include "internal/time.h"
2324

2425
static BIO *bio_err = NULL;

0 commit comments

Comments
 (0)