From 12c889f4502e4f501511f8c33b3ca1c884f332f8 Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" <114750+alfredh@users.noreply.github.com> Date: Sat, 19 Oct 2024 18:00:26 +0200 Subject: [PATCH] tls: make tls_verify_handler() static --- src/tls/openssl/tls.c | 2 +- src/tls/openssl/tls.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tls/openssl/tls.c b/src/tls/openssl/tls.c index b182b74ef..3b0de4568 100644 --- a/src/tls/openssl/tls.c +++ b/src/tls/openssl/tls.c @@ -171,7 +171,7 @@ static int keytype2int(enum tls_keytype type) * * @return passes parameter ok unchanged */ -int tls_verify_handler(int ok, X509_STORE_CTX *ctx) +static int tls_verify_handler(int ok, X509_STORE_CTX *ctx) { int err, depth; diff --git a/src/tls/openssl/tls.h b/src/tls/openssl/tls.h index ac780f0ae..b54ce9bde 100644 --- a/src/tls/openssl/tls.h +++ b/src/tls/openssl/tls.h @@ -33,5 +33,4 @@ const char *tls_cert_host(struct tls_cert *hc); const struct list *tls_certs(const struct tls *tls); struct tls_cert *tls_cert_for_sni(const struct tls *tls, const char *sni); -int tls_verify_handler(int ok, X509_STORE_CTX *ctx); void tls_enable_sni(struct tls *tls);