comparison src/event/quic/ngx_event_quic_openssl_compat.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 7da4791e0264
children daf8f5ba23d8
comparison
equal deleted inserted replaced
9112:d59277dd3d8c 9113:bddd3f76e3e5
5 5
6 6
7 #ifndef _NGX_EVENT_QUIC_OPENSSL_COMPAT_H_INCLUDED_ 7 #ifndef _NGX_EVENT_QUIC_OPENSSL_COMPAT_H_INCLUDED_
8 #define _NGX_EVENT_QUIC_OPENSSL_COMPAT_H_INCLUDED_ 8 #define _NGX_EVENT_QUIC_OPENSSL_COMPAT_H_INCLUDED_
9 9
10 #ifdef TLSEXT_TYPE_quic_transport_parameters 10 #if defined SSL_R_MISSING_QUIC_TRANSPORT_PARAMETERS_EXTENSION \
11 || defined LIBRESSL_VERSION_NUMBER
11 #undef NGX_QUIC_OPENSSL_COMPAT 12 #undef NGX_QUIC_OPENSSL_COMPAT
12 #else 13 #else
13 14
14 15
15 #include <ngx_config.h> 16 #include <ngx_config.h>