|
◆ CERT_BuildCertChainCallBack
Create a certificate chain based on the device certificate in use.
- 注意
- If the function is successful, the certificate in the certificate chain is managed by the HiTLS, and the user does not need to release the memory. Otherwise, the certificate chain is an empty pointer array.
- 参数
-
config | [IN] TLS link configuration |
store | [IN] Certificate store |
cert | [IN] Device certificate |
certList | [OUT] Certificate chain, which is a pointer array. Each element indicates a certificate. The first element is the device certificate. |
num | [IN/OUT] IN: maximum length of the certificate chain OUT: length of the certificate chain |
- 返回值
-
HITLS_SUCCESS | indicates success. Other values are considered as failure. |
|