EasyManua.ls Logo

Espressif ESP32-S2 - Page 563

Espressif ESP32-S2
1695 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 2. API Reference
cert - a point pointed to X509 certification
buffer - a point pointed to the certification context memory point
length - certification bytes
Return:
X509 certification object point
Description:
load a character certification context into system context. If '*cert' is
,pointed to the
certification, then load certification into it. Or create a new X509
,certification object
Example:
void example(void)
{
X509 *new;
X509 *cert;
unsigned char *buffer;
long len;
... ...
new = d2i_X509(&cert, buffer, len);
}
4.2 int SSL_add_client_CA (SSL * ssl, X509 * x)
Arguments:
ssl - SSL point
x - CA certification point
Return:
1 : OK
0 : failed
Description:
add CA client certification into the SSL
Example:
void example(void)
{
int ret;
SSL *ssl;
X509 *new;
... ...
ret = SSL_add_client_CA(ssl, new);
}
4.3 int SSL_CTX_add_client_CA (SSL_CTX * ctx, X509 * x)
Arguments:
ctx - SSL context point
x - CA certification point
Espressif Systems 552
Submit Document Feedback
Release v4.4

Table of Contents