Embedded TCP/IP stack  4.7.0

◆ fnet_tls_set_ca_certificate()

fnet_return_t fnet_tls_set_ca_certificate ( fnet_tls_desc_t  tls_desc,
const fnet_uint8_t *  ca_certificate,
fnet_size_t  ca_certificate_size 
)

Assign Certificate Authority certificate.

Parameters
tls_descTLS context descriptor
ca_certificateBuffer holding CA (Certificate Authority), or trusted root, certificate data, in PEM or DER format. It is used to verify certificates received from peers during the TLS handshake.
ca_certificate_sizeSize of the CA certificate buffer (including the terminating null byte for PEM data).
Returns
This function returns:
See also
fnet_tls_init()

This function assign CA (Certificate Authority), or trusted root, certificate to the TLS context.
It is used to verify certificates received from peers during the TLS handshake.
Used mainly by TLS clients.


© 2005-2020 by Andrej Butok. http://fnet.sourceforge.net