Espressif ESP32-S2 Programming Manual page 547

Table of Contents

Advertisement

Chapter 2. API Reference
free SSL
Example:
void example(void)
{
SSL *ssl;
... ...
SSL_free(ssl);
}
3.3 int SSL_do_handshake (SSL * ssl)
Arguments:
ssl - SSL point
Return:
1 : OK
0 : failed, connect is close by remote
-1 : a error catch
Description:
perform the SSL handshake
Example:
void example(void)
{
SSL *ssl;
int ret;
... ...
ret = SSL_do_handshake(ssl);
}
3.4 int SSL_connect (SSL * ssl)
Arguments:
ssl - SSL point
Return:
1 : OK
0 : failed, connect is close by remote
-1 : a error catch
Description:
connect to the remote SSL server
Example:
void example(void)
{
SSL *ssl;
Espressif Systems
536
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