EasyManuals Logo

Espressif ESP32-S2 User Manual

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
Page #567 background imageLoading...
Page #567 background image
Chapter 2. API Reference
(continued from previous page)
const unsigned char *buf;
long len;
... ...
ret = SSL_CTX_use_PrivateKey_ASN1(pk, ctx, buf, len);
}
4.10 int SSL_CTX_use_RSAPrivateKey_ASN1 (SSL_CTX * ctx, const unsigned char * d, long len)
Arguments:
ctx - SSL context point
d - data point
len - private key length
Return:
1 : OK
0 : failed
Description:
load the RSA ASN1 private key into SSL context
Example:
void example(void)
{
int ret;
SSL_CTX *ctx;
const unsigned char *buf;
long len;
... ...
ret = SSL_CTX_use_RSAPrivateKey_ASN1(ctx, buf, len);
}
4.11 int SSL_use_certificate_ASN1 (SSL * ssl, int len, const unsigned char * d)
Arguments:
ssl - SSL point
len - data bytes
d - data point
Return:
1 : OK
0 : failed
Description:
load certification into the SSL
Example:
void example(void)
{
int ret;
(continues on next page)
Espressif Systems 556
Submit Document Feedback
Release v4.4

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

Espressif ESP32-S2 Specifications

General IconGeneral
BrandEspressif
ModelESP32-S2
CategorySingle board computers
LanguageEnglish