|
◆ HITLS_Renegotiate()
Perform renegotiation.
- 注意
- 1. After this interface is called, the user needs to call one of the HITLS_Connect / HITLS_Accept / HITLS_Read / HITLS_Write interfaces again, The HITLS_Renegotiate interface is used only for setting and initialization of renegotiation, The renegotiation process is performed when the user calls the HITLS_Connect / HITLS_Accept / HITLS_Read / HITLS_Write.
- You are advised to use the HITLS_Connect / HITLS_Accept interface for renegotiation. After the negotiation is complete, call the HITLS_Read / HITLS_Write interface.
- If the user uses HITLS_Read to perform renegotiation, the user may receive the app message from the peer end during the renegotiation. (1) If the renegotiation has not started, the HiTLS will return the message to the user. (2) If the renegotiation is in progress, no app message is received in this scenario, and the HiTLS sends an alert message to disconnect the link.
- If the user uses the HITLS_Connect / HITLS_Accept / HITLS_Write for renegotiation, the user may receive the app message from the peer end during the renegotiation, HiTLS caches the message, the message is returned when a user calls HITLS_Read. Maximum of 50 app messages can be cached, if the cache is full, subsequent app messages will be ignored.
- 参数
-
ctx | [IN] TLS Connection Handle |
- 返回值
-
HITLS_SUCCESS,if | successful. |
For | details about other error codes, see hitls_error.h. |
|