EasyManua.ls Logo

Espressif ESP32-S2 - Page 567

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
(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