Skip to content

Commit

Permalink
src/ssl.c: add missing !NO_WOLFSSL_SERVER gate around wolfSSL_get_ser…
Browse files Browse the repository at this point in the history
…vername().
  • Loading branch information
douzzer committed Mar 1, 2025
1 parent d6b5c8e commit 058014b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 058014b

Please sign in to comment.