From 3be5856c82060bf0280be9b8e0522871c368f9a6 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 24 Oct 2017 00:17:07 +0900 Subject: [PATCH] nghttpx: Fix unused function warnings --- src/shrpx_tls.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/shrpx_tls.cc b/src/shrpx_tls.cc index 8f5b7d67..9224ec3b 100644 --- a/src/shrpx_tls.cc +++ b/src/shrpx_tls.cc @@ -558,6 +558,8 @@ int alpn_select_proto_cb(SSL *ssl, const unsigned char **out, } // namespace #endif // OPENSSL_VERSION_NUMBER >= 0x10002000L +#if !LIBRESSL_IN_USE && OPENSSL_VERSION_NUMBER >= 0x10002000L + #ifndef TLSEXT_TYPE_signed_certificate_timestamp #define TLSEXT_TYPE_signed_certificate_timestamp 18 #endif // !TLSEXT_TYPE_signed_certificate_timestamp @@ -620,8 +622,7 @@ int sct_parse_cb(SSL *ssl, unsigned int ext_type, unsigned int context, } } // namespace -#if !LIBRESSL_IN_USE && OPENSSL_VERSION_NUMBER >= 0x10002000L && \ - !OPENSSL_1_1_1_API +#if !OPENSSL_1_1_1_API namespace { int legacy_sct_add_cb(SSL *ssl, unsigned int ext_type, @@ -646,8 +647,8 @@ int legacy_sct_parse_cb(SSL *ssl, unsigned int ext_type, } } // namespace -#endif // !LIBRESSL_IN_USE && OPENSSL_VERSION_NUMBER >= 0x10002000L && - // !OPENSSL_1_1_1_API +#endif // !OPENSSL_1_1_1_API +#endif // !LIBRESSL_IN_USE && OPENSSL_VERSION_NUMBER >= 0x10002000L #if !LIBRESSL_IN_USE namespace {