openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_CFG_SetNoClientCertSupport()

int32_t HITLS_CFG_SetNoClientCertSupport ( HITLS_Config config,
bool  support 
)

Sets whether to allow the client certificate to be empty. This parameter takes effect only when client certificate verification is enabled. Client: This setting has no impact Server: Check whether the certificate passes the verification when receiving an empty certificate from the client. The verification fails by default.

参数
config[OUT] Config handle
support[IN] Indicates whether the authentication is successful when no client certificate is available. true: The server still passes the verification when the certificate sent by the client is empty. false: The server fails to pass the verification when the certificate sent by the client is empty.
返回值
HITLS_SUCCESS,ifsuccessful.
HITLS_NULL_INPUT,Theconfig parameter is empty.