|
◆ HITLS_SniDealCb
typedef int32_t(* HITLS_SniDealCb) (HITLS_Ctx *ctx, int *alert, void *arg) |
Set the extension prototype for the server to process Client Hello server_name.
- 参数
-
ctx | [IN] ctx context. |
alert | [IN] Warning information. |
arg | [IN] The server supports the input parameters related to server_name. |
- 返回值
-
The | user return value contains: HITLS_ACCEPT_SNI_ERR_OK 0 (received, server_name null extension) HITLS_ACCEPT_SNI_ERR_ALERT_FATAL 2 (Do not accept, abort handshake) HITLS_ACCEPT_SNI_ERR_NOACK 3 (not accepted, but continue handshake, not sending server_name null extension) |
|