From 058014b3ebba50aa2ab733db0d3c5a44ac79a144 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Fri, 28 Feb 2025 19:07:03 -0600 Subject: [PATCH] src/ssl.c: add missing !NO_WOLFSSL_SERVER gate around wolfSSL_get_servername(). --- src/ssl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ssl.c b/src/ssl.c index 139e9e625..16ab2998c 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -21432,6 +21432,7 @@ int wolfSSL_set_tlsext_host_name(WOLFSSL* ssl, const char* host_name) return ret; } +#ifndef NO_WOLFSSL_SERVER /* May be called by server to get the requested accepted name and by the client * to get the requested name. */ const char * wolfSSL_get_servername(WOLFSSL* ssl, byte type) @@ -21443,6 +21444,8 @@ const char * wolfSSL_get_servername(WOLFSSL* ssl, byte type) !wolfSSL_is_server(ssl)); return (const char *)serverName; } +#endif + #endif /* HAVE_SNI */ WOLFSSL_CTX* wolfSSL_set_SSL_CTX(WOLFSSL* ssl, WOLFSSL_CTX* ctx)