openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_SetCertificate()

int32_t HITLS_SetCertificate ( HITLS_Ctx ctx,
HITLS_CERT_X509 cert,
bool  isClone 
)

Add a device certificate. Only one certificate can be added for each type.

参数
ctx[OUT] TLS link object
cert[IN] Device certificate
返回值
HITLS_SUCCESS,ifsuccessful.
Forother error codes, see hitls_error.h.