mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-22 09:01:08 +00:00
Merge branch 'fix/make_esp_tls_t_private' into 'master'
Make esp_tls_t as private structure Closes IDF-2812 See merge request espressif/esp-idf!17812
This commit is contained in:
@@ -36,7 +36,7 @@ typedef enum {
|
||||
*/
|
||||
typedef struct esp_https_server_user_cb_arg {
|
||||
httpd_ssl_user_cb_state_t user_cb_state;
|
||||
const esp_tls_t *tls;
|
||||
esp_tls_t *tls;
|
||||
} esp_https_server_user_cb_arg_t;
|
||||
|
||||
/**
|
||||
|
@@ -118,7 +118,7 @@ static esp_err_t httpd_ssl_open(httpd_handle_t server, int sockfd)
|
||||
httpd_ssl_ctx_t *global_ctx = httpd_get_global_transport_ctx(server);
|
||||
assert(global_ctx != NULL);
|
||||
|
||||
esp_tls_t *tls = (esp_tls_t *)calloc(1, sizeof(esp_tls_t));
|
||||
esp_tls_t *tls = esp_tls_init();
|
||||
if (!tls) {
|
||||
return ESP_ERR_NO_MEM;
|
||||
}
|
||||
|
Reference in New Issue
Block a user