Skip to content

Commit 058014b

Browse files
committed
src/ssl.c: add missing !NO_WOLFSSL_SERVER gate around wolfSSL_get_servername().
1 parent d6b5c8e commit 058014b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/ssl.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21432,6 +21432,7 @@ int wolfSSL_set_tlsext_host_name(WOLFSSL* ssl, const char* host_name)
2143221432
return ret;
2143321433
}
2143421434

21435+
#ifndef NO_WOLFSSL_SERVER
2143521436
/* May be called by server to get the requested accepted name and by the client
2143621437
* to get the requested name. */
2143721438
const char * wolfSSL_get_servername(WOLFSSL* ssl, byte type)
@@ -21443,6 +21444,8 @@ const char * wolfSSL_get_servername(WOLFSSL* ssl, byte type)
2144321444
!wolfSSL_is_server(ssl));
2144421445
return (const char *)serverName;
2144521446
}
21447+
#endif
21448+
2144621449
#endif /* HAVE_SNI */
2144721450

2144821451
WOLFSSL_CTX* wolfSSL_set_SSL_CTX(WOLFSSL* ssl, WOLFSSL_CTX* ctx)

0 commit comments

Comments
 (0)