BALTECH Docs |
C API for BALTECH SDK
|
BRP_LIB brp_errcode brp_append_host_certs | ( | brp_protocol | protocol, |
brp_buf | host_cert_chain, | ||
size_t | host_cert_chain_len | ||
) |
Adds certificate(s) to the host certificate chain.
This is a convenience function if the certificate cannot be set at once by the host_cert_chain parameter of the brp_create_pki() function.
If protocol is NULL, this function is a no-operation.
protocol | PKI protocol that shall be extended |
host_cert_chain | pointer to ASN.1 DER-encoded certificate(s) Multiple certificates can be added by simply joining them |
host_cert_chain_len | length of host_cert_chain |