|
◆ HITLS_CFG_SetAlpnProtos()
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.
- 参数
-
config | [OUT] Config context. |
alpnProtos | [IN] Application layer protocol list. |
alpnProtosLen | [IN] Length of the application layer protocol list. |
- 返回值
-
If | success, return HITLS_SUCCESS. For details about other error codes, see hitls_error.h. |
|