Espressif ESP32-S2 Programming Manual page 567

Table of Contents

Advertisement

Chapter 2. API Reference
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;
Espressif Systems
556
Submit Document Feedback
(continued from previous page)
(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