openHiTLS API openHiTLS 0.1.0-Alpha1
类型定义 | 函数
Hitls_alpn

TLS ALPN related type 更多...

Hitls_alpn 的协作图:

类型定义

typedef int32_t(* HITLS_AlpnSelectCb) (HITLS_Ctx *ctx, uint8_t **selectedProto, uint8_t *selectedProtoSize, uint8_t *clientAlpnList, uint32_t clientAlpnListSize, void *userData)
 Callback prototype for selecting the ALPN protocol on the server, which is used to select the application layer protocol during ALPN negotiation.
 

函数

int32_t HITLS_CFG_SetAlpnProtos (HITLS_Config *config, const uint8_t *alpnProtos, uint32_t alpnProtosLen)
 Sets the ALPN list on the client, which is used to negotiate the application layer protocol with the server in the handshake phase.
 
int32_t HITLS_CFG_SetAlpnProtosSelectCb (HITLS_Config *config, HITLS_AlpnSelectCb callback, void *userData)
 Sets the ALPN selection callback on the server.
 
int32_t HITLS_SetAlpnProtos (HITLS_Ctx *ctx, const uint8_t *protos, uint32_t protosLen)
 Sets the client ALPN list, which is used to negotiate the application layer protocol with the server in the handshake phase.
 
int32_t HITLS_GetSelectedAlpnProto (HITLS_Ctx *ctx, uint8_t **proto, uint32_t *protoLen)
 Obtaining the ALPN Negotiation Result
 

详细描述

TLS ALPN related type