From: Otto Moerbeek Date: Tue, 15 Apr 2025 14:25:02 +0000 (+0200) Subject: Tidy X-Git-Tag: dnsdist-2.0.0-alpha2~72^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F15436%2Fhead;p=thirdparty%2Fpdns.git Tidy --- diff --git a/pdns/libssl.cc b/pdns/libssl.cc index 548f714111..7220d30f7d 100644 --- a/pdns/libssl.cc +++ b/pdns/libssl.cc @@ -1127,10 +1127,10 @@ pdns::UniqueFilePtr libssl_set_key_log_file([[maybe_unused]] SSL_CTX* ctx, [[may } /* called in a client context, if the client advertised more than one ALPN value and the server returned more than one as well, to select the one to use. */ -void libssl_set_alpn_select_callback([[maybe_unused]] SSL_CTX* ctx, [[maybe_unused]] int (*cb)(SSL* s, const unsigned char** out, unsigned char* outlen, const unsigned char* in, unsigned int inlen, void* arg), [[maybe_unused]] void* arg) +void libssl_set_alpn_select_callback([[maybe_unused]] SSL_CTX* ctx, [[maybe_unused]] int (*callback)(SSL* ssl, const unsigned char** out, unsigned char* outlen, const unsigned char* inPtr, unsigned int inlen, void* arg), [[maybe_unused]] void* arg) { #ifdef HAVE_SSL_CTX_SET_ALPN_SELECT_CB - SSL_CTX_set_alpn_select_cb(ctx, cb, arg); + SSL_CTX_set_alpn_select_cb(ctx, callback, arg); #endif } diff --git a/pdns/libssl.hh b/pdns/libssl.hh index 3d3e5a8eba..861a3aa7d7 100644 --- a/pdns/libssl.hh +++ b/pdns/libssl.hh @@ -161,7 +161,7 @@ std::pair, std::vector>& protos);