From 131f684a6fe5c533869a1b68392431e5fb6a040a Mon Sep 17 00:00:00 2001 From: James M Snell Date: Thu, 4 Mar 2021 09:38:12 -0800 Subject: [PATCH] Add OPENSSL_HAS_QUIC define Inverse of the OPENSSL_NO_QUIC, the OPENSSL_HAS_QUIC is only defined when QUIC is available. --- include/openssl/ssl.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/openssl/ssl.h b/include/openssl/ssl.h index 21d77d9ea8ad8..630e2db7a53d1 100644 --- a/include/openssl/ssl.h +++ b/include/openssl/ssl.h @@ -2488,6 +2488,14 @@ __owur int SSL_get_peer_quic_transport_version(const SSL *ssl); int SSL_CIPHER_get_prf_nid(const SSL_CIPHER *c); +/* + * This define is really the inverse of the OPENSSL_NO_QUIC define. It + * allows easier detection of whether the QUIC APIs are available in + * a particular OpenSSL instance when the default assumption is that + * they are. + */ +#define OPENSSL_HAS_QUIC + # endif # ifdef __cplusplus