Encode the certificate in ASN.1 DER format.
- 参数
-
ctx | [IN] TLS link object. |
cert | [IN] Certificate. |
buf | [OUT] Certificate encoding data. |
len | [IN] Maximum encoding length. |
usedLen | [OUT] Actual encoding length. |
- 返回值
-
HITLS_SUCCESS | indicates success. Other values are considered as failure. |