Espressif ESP32-S2 Programming Manual page 565

Table of Contents

Advertisement

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;
Espressif Systems
554
Submit Document Feedback
(continues on next page)
Release v4.4

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP32-S2 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF