Add the device certificate by the ShangMi(SM) cipher suites. Only one certificate can be added for each type.
- 参数
-
| config | [OUT] TLS link configuration |
| cert | [IN] Device certificate |
| isClone | [IN] Indicates whether deep copy is required. The options are as follows: true: yes; false: no. |
| isTlcpEncCert | [IN] Indicates whether the certificate is encrypted by China. The options are as follows: true: yes; false: no. |
- 返回值
-
| HITLS_SUCCESS,if | successful. For details about other error codes, see hitls_error.h. |