openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_CFG_SetPostHandshakeAuthSupport()

int32_t HITLS_CFG_SetPostHandshakeAuthSupport ( HITLS_Config config,
bool  support 
)

Setting whether to support post-handshake auth takes effect only for TLS1.3. client: If the client supports pha, the client sends pha extensions. Server: supports pha. After the handshake, the upper-layer interface HITLS_VerifyClientPostHandshake initiates certificate verification.

参数
config[OUT] Config handle
support[IN] Whether to support pha True: pha is supported. False: pha is not supported.
返回值
HITLS_SUCCESS,ifsuccessful.
HITLS_NULL_INPUT,Theconfig parameter is empty.
注意
Before enabling this function on the server, enable HITLS_CFG_SetClientVerifySupport. Otherwise, the configuration does not take effect.