mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
src/ssl.c: add missing !NO_WOLFSSL_SERVER gate around wolfSSL_get_servername().
This commit is contained in:
@ -21432,6 +21432,7 @@ int wolfSSL_set_tlsext_host_name(WOLFSSL* ssl, const char* host_name)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef NO_WOLFSSL_SERVER
|
||||||
/* May be called by server to get the requested accepted name and by the client
|
/* May be called by server to get the requested accepted name and by the client
|
||||||
* to get the requested name. */
|
* to get the requested name. */
|
||||||
const char * wolfSSL_get_servername(WOLFSSL* ssl, byte type)
|
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));
|
!wolfSSL_is_server(ssl));
|
||||||
return (const char *)serverName;
|
return (const char *)serverName;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* HAVE_SNI */
|
#endif /* HAVE_SNI */
|
||||||
|
|
||||||
WOLFSSL_CTX* wolfSSL_set_SSL_CTX(WOLFSSL* ssl, WOLFSSL_CTX* ctx)
|
WOLFSSL_CTX* wolfSSL_set_SSL_CTX(WOLFSSL* ssl, WOLFSSL_CTX* ctx)
|
||||||
|
Reference in New Issue
Block a user