|
◆ HITLS_SetAlpnProtos()
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.
- 参数
-
ctx | [OUT] TLS connection Handle. |
protos | [IN] Application layer protocol list. |
protosLen | [IN] Length of the application layer protocol list. |
- 返回值
-
If | success, return HITLS_SUCCESS. For details about other error codes, see hitls_error.h. |
|