From 5b49807c3fa38d67276f0b217588e9d8ce9dd25f Mon Sep 17 00:00:00 2001 From: James M Snell Date: Tue, 23 Jun 2020 17:40:53 -0700 Subject: [PATCH] deps: re-enable OPENSSL_NO_QUIC guards PR-URL: https://github.com/nodejs/node/pull/34033 Reviewed-By: Anna Henningsen Reviewed-By: Jiawen Geng Reviewed-By: Daniel Bevenius PR-URL: https://github.com/nodejs/node/pull/36520 Reviewed-By: James M Snell Reviewed-By: Richard Lau Reviewed-By: Michael Dawson Reviewed-By: Beth Griggs --- deps/openssl/openssl/ssl/ssl_quic.c | 4 ++++ deps/openssl/openssl/ssl/statem/statem_quic.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/deps/openssl/openssl/ssl/ssl_quic.c b/deps/openssl/openssl/ssl/ssl_quic.c index 7e0495fd54a2a2..35590e2ac37348 100644 --- a/deps/openssl/openssl/ssl/ssl_quic.c +++ b/deps/openssl/openssl/ssl/ssl_quic.c @@ -7,6 +7,8 @@ * https://www.openssl.org/source/license.html */ +#ifndef OPENSSL_NO_QUIC + #include "ssl_local.h" #include "internal/cryptlib.h" #include "internal/refcount.h" @@ -293,3 +295,5 @@ int SSL_is_quic(SSL* ssl) { return SSL_IS_QUIC(ssl); } + +#endif // OPENSSL_NO_QUIC diff --git a/deps/openssl/openssl/ssl/statem/statem_quic.c b/deps/openssl/openssl/ssl/statem/statem_quic.c index 2843938ce2ef4b..3da3bfa889050d 100644 --- a/deps/openssl/openssl/ssl/statem/statem_quic.c +++ b/deps/openssl/openssl/ssl/statem/statem_quic.c @@ -7,6 +7,8 @@ * https://www.openssl.org/source/license.html */ +#ifndef OPENSSL_NO_QUIC + #include "../ssl_local.h" #include "statem_local.h" #include "internal/cryptlib.h" @@ -116,3 +118,5 @@ int quic_get_message(SSL *s, int *mt, size_t *len) return 1; } + +#endif // OPENSSL_NO_QUIC