mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
Added SNI ( https://en.wikipedia.org/wiki/Server_Name_Indication ) support.
This commit is contained in:
10
ssl/ssl.h
10
ssl/ssl.h
@ -352,6 +352,16 @@ EXP_FUNC int STDCALL ssl_handshake_status(const SSL *ssl);
|
||||
*/
|
||||
EXP_FUNC int STDCALL ssl_get_config(int offset);
|
||||
|
||||
/**
|
||||
* @brief Sets the hostname to be used for SNI
|
||||
* @see https://en.wikipedia.org/wiki/Server_Name_Indication
|
||||
* @param char* hostname
|
||||
* @return success from the operation
|
||||
* - 1 on success
|
||||
* - 0 on failure
|
||||
*/
|
||||
EXP_FUNC int STDCALL ssl_set_hostname(const SSL *ssl, const char* host_name);
|
||||
|
||||
/**
|
||||
* @brief Display why the handshake failed.
|
||||
*
|
||||
|
Reference in New Issue
Block a user