You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
0 If connection state is in progress.
*/
int esp_tls_conn_new_sync(const char *hostname, int hostlen, int port, const esp_tls_cfg_t *cfg, esp_tls_t *tls);
`
if I pass a cfg=NULL param, the function return -1.
In fact, the function implementation is
int esp_tls_conn_new_sync(const char *hostname, int hostlen, int port, const esp_tls_cfg_t *cfg, esp_tls_t *tls)
{
if (!cfg || !tls || !hostname || hostlen < 0) {
return -1;
}
uint64_t start_time_us;
start_time_us = esp_tls_get_platform_time();
...
There is a mismatch between the header doc and the func implementation.
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
ESP-TLS: esp_tls_conn_new_sync cannot open non-TLS connection
ESP-TLS: esp_tls_conn_new_sync cannot open non-TLS connection (IDFGH-13865)
Oct 11, 2024
Answers checklist.
General issue report
I'm using ESP-IDF v5.3.1
In esp_tsl.h there is the esp_tls_conn_new_sync function
`/**
*/
int esp_tls_conn_new_sync(const char *hostname, int hostlen, int port, const esp_tls_cfg_t *cfg, esp_tls_t *tls);
`
if I pass a cfg=NULL param, the function return -1.
In fact, the function implementation is
int esp_tls_conn_new_sync(const char *hostname, int hostlen, int port, const esp_tls_cfg_t *cfg, esp_tls_t *tls)
{
if (!cfg || !tls || !hostname || hostlen < 0) {
return -1;
}
uint64_t start_time_us;
start_time_us = esp_tls_get_platform_time();
...
There is a mismatch between the header doc and the func implementation.
The text was updated successfully, but these errors were encountered: