openHiTLS API openHiTLS 0.1.0-Alpha1
类型定义 | 枚举 | 函数
Hitls_sni

TLS SNI correlation type 更多...

Hitls_sni 的协作图:

类型定义

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.
 

枚举

enum  SNI_Type { HITLS_SNI_HOSTNAME_TYPE , HITLS_SNI_BUTT = 255 }
 Currently, the SNI supports only the host name type. 更多...
 

函数

const char * HITLS_GetServerName (const HITLS_Ctx *ctx, const int type)
 Obtain the value of server_name before, during, or after the handshake on the client or server.
 
int32_t HITLS_GetServernameType (const HITLS_Ctx *ctx)
 Obtain the server_name type before, during, or after the handshake on the client or server.
 
int32_t HITLS_CFG_SetServerName (HITLS_Config *config, uint8_t *serverName, uint32_t serverNameStrlen)
 Set server_name.
 
int32_t HITLS_CFG_GetServerName (HITLS_Config *config, uint8_t **serverName, uint32_t *serverNameStrlen)
 Obtain the value of server_name configured on the client.
 
int32_t HITLS_CFG_SetServerNameCb (HITLS_Config *config, HITLS_SniDealCb callback)
 Set the server_name callback function on the server, which is used for SNI negotiation, cb can be NULL.
 
int32_t HITLS_CFG_SetServerNameArg (HITLS_Config *config, void *arg)
 Set the server_name parameters required during SNI negotiation on the server.
 
int32_t HITLS_CFG_GetServerNameCb (HITLS_Config *config, HITLS_SniDealCb *callback)
 Obtain the server_name callback settings on the server.
 
int32_t HITLS_CFG_GetServerNameArg (HITLS_Config *config, void **arg)
 Obtain the server_name required during SNI negotiation on the server, related Parameter arg.
 

详细描述

TLS SNI correlation type