Espressif ESP32-S2 Programming Manual page 544

Table of Contents

Advertisement

Chapter 2. API Reference
Return:
TLSV1.2 version SSL context server method point
Description:
create the target SSL context method
Example:
void example(void)
{
const SSL_METHOD *method = TLSv1_2_server_method();
...
}
1.10 const SSL_METHOD* TLS_server_method (void)
Arguments:
none
Return:
TLSV1.2 version SSL context server method point
Description:
create the default SSL context method, it's always to be TLSV1.2
Example:
void example(void)
{
const SSL_METHOD *method = TLSv1_2_server_method();
...
}
Chapter 2. SSL Context Function
2.1 SSL_CTX* SSL_CTX_new (const SSL_METHOD * method)
Arguments:
method - the SSL context method point
Return:
context point
Description:
create a SSL context
Example:
void example(void)
{
SSL_CTX *ctx = SSL_CTX_new(SSLv3_server_method());
Espressif Systems
533
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?

Table of Contents

Save PDF