openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_GetSelectedAlpnProto()

int32_t HITLS_GetSelectedAlpnProto ( HITLS_Ctx ctx,
uint8_t **  proto,
uint32_t *  protoLen 
)

Obtaining the ALPN Negotiation Result

参数
ctx[IN] Ctx context.
proto[OUT] Header address of the outgoing selected protocol.
protoLen[OUT] Length of the outgoing selected protocol.
返回值
Ifsuccess, return HITLS_SUCCESS. For details about other error codes, see hitls_error.h.