]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Tidy 15436/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 15 Apr 2025 14:25:02 +0000 (16:25 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 15 Apr 2025 15:09:50 +0000 (17:09 +0200)
pdns/libssl.cc
pdns/libssl.hh

index 548f71411151a0f9f6183e856b4f719ed37a6a45..7220d30f7d03b49d1fae7994d3d70ff8eee9a454 100644 (file)
@@ -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
 }
 
index 3d3e5a8eba48e49fda9e5917ba5c607d99ddf2db..861a3aa7d728dfb64b83bee89ddedb84883143ac 100644 (file)
@@ -161,7 +161,7 @@ std::pair<std::unique_ptr<SSL_CTX, decltype(&SSL_CTX_free)>, std::vector<std::st
 pdns::UniqueFilePtr libssl_set_key_log_file(SSL_CTX* ctx, const std::string& logFile);
 
 /* called in a server context, to select an ALPN value advertised by the client if any */
-void libssl_set_alpn_select_callback(SSL_CTX* ctx, int (*cb)(SSL* s, const unsigned char** out, unsigned char* outlen, const unsigned char* in, unsigned int inlen, void* arg), void* arg);
+void libssl_set_alpn_select_callback(SSL_CTX* ctx, int (*callback)(SSL* ssl, const unsigned char** out, unsigned char* outlen, const unsigned char* inPtr, unsigned int inlen, void* arg), void* arg);
 /* set the supported ALPN protos in client context */
 bool libssl_set_alpn_protos(SSL_CTX* ctx, const std::vector<std::vector<uint8_t>>& protos);