openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_SetNoClientCertSupport()

int32_t HITLS_SetNoClientCertSupport ( HITLS_Ctx ctx,
bool  support 
)

Set whether to support the function without the client certificate, Takes effect only when the client certificate is verified.

Client: This setting has no impact. Server: When an NULL certificate is received from the client, indicates whether the certificate passes the verification, the verification fails by default.

参数
ctx[OUT] TLS connection handle
support[IN] Indicates whether the authentication is successful when there is no client certificate. true: If the certificate sent by the client is NULL, the server still passes the verification. false: If the certificate sent by the client is NULL, the server fails the verification.
返回值
HITLS_SUCCESS,ifsuccessful.
HITLS_NULL_INPUT,configis null.