Mercurial > hg > nginx
annotate src/event/quic/ngx_event_quic_socket.h @ 9113:bddd3f76e3e5
QUIC: fixed OpenSSL compat layer with OpenSSL master branch.
The layer is enabled as a fallback if the QUIC support is configured and the
BoringSSL API wasn't detected, or when using the --with-openssl option, also
compatible with QuicTLS and LibreSSL. For the latter, the layer is assumed
to be present if QUIC was requested, so it needs to be undefined to prevent
QUIC API redefinition as appropriate.
A previously used approach to test the TLSEXT_TYPE_quic_transport_parameters
macro doesn't work with OpenSSL 3.2 master branch where this macro appeared
with incompatible QUIC API. To fix the build there, the test is revised to
pass only for QuicTLS and LibreSSL.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 23 May 2023 00:45:18 +0400 |
parents | c389200e10a2 |
children |
rev | line source |
---|---|
8763 | 1 |
2 /* | |
3 * Copyright (C) Nginx, Inc. | |
4 */ | |
5 | |
6 | |
7 #ifndef _NGX_EVENT_QUIC_SOCKET_H_INCLUDED_ | |
8 #define _NGX_EVENT_QUIC_SOCKET_H_INCLUDED_ | |
9 | |
10 | |
11 #include <ngx_config.h> | |
12 #include <ngx_core.h> | |
13 | |
14 | |
15 ngx_int_t ngx_quic_open_sockets(ngx_connection_t *c, | |
16 ngx_quic_connection_t *qc, ngx_quic_header_t *pkt); | |
17 void ngx_quic_close_sockets(ngx_connection_t *c); | |
18 | |
8955
32daba3aabb2
QUIC: got rid of ngx_quic_create_temp_socket().
Vladimir Homutov <vl@nginx.com>
parents:
8911
diff
changeset
|
19 ngx_quic_socket_t *ngx_quic_create_socket(ngx_connection_t *c, |
8763 | 20 ngx_quic_connection_t *qc); |
21 ngx_int_t ngx_quic_listen(ngx_connection_t *c, ngx_quic_connection_t *qc, | |
22 ngx_quic_socket_t *qsock); | |
23 void ngx_quic_close_socket(ngx_connection_t *c, ngx_quic_socket_t *qsock); | |
24 | |
25 ngx_quic_socket_t *ngx_quic_find_socket(ngx_connection_t *c, uint64_t seqnum); | |
26 | |
27 | |
28 #endif /* _NGX_EVENT_QUIC_SOCKET_H_INCLUDED_ */ |