EasyManua.ls Logo

Espressif ESP32-S2 - Page 565

Espressif ESP32-S2
1695 pages
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
void example(void)
{
SSL *ssl;
long ret;
... ...
ret = SSL_get_verify_result(ssl);
}
4.6 int SSL_CTX_use_certificate (SSL_CTX * ctx, X509 * x)
Arguments:
ctx - the SSL context point
pkey - certification object point
Return:
1 : OK
0 : failed
Description:
load the certification into the SSL_CTX or SSL object
Example:
void example(void)
{
int ret;
SSL_CTX *ctx
X509 *new;
... ...
ret = SSL_CTX_use_certificate(ctx, new);
}
4.7 int SSL_CTX_use_certificate_ASN1 (SSL_CTX * ctx, int len, const unsigned char * d)
Arguments:
ctx - SSL context point
len - certification length
d - data point
Return:
1 : OK
0 : failed
Description:
load the ASN1 certification into SSL context
Example:
void example(void)
{
int ret;
SSL_CTX *ctx;
(continues on next page)
Espressif Systems 554
Submit Document Feedback
Release v4.4

Table of Contents