add setter method for sockfd to esp_tls_t structure (IDFGH-9514) #10871
Labels
Resolution: Done
Issue is done internally
Status: Done
Issue is done internally
Type: Feature Request
Feature request for IDF
Is your feature request related to a problem?
This feature request relates to changes on esp tls structure and make the variables private in esp-idf version 5: link to migration guide
Describe the solution you'd like.
We need to have the possiblity to set the socket handle for the tls connection, so the setter functionality relating to the method esp_tls_get_conn_sockfd would be great. Also we set the connection state to "connecting".
Describe alternatives you've considered.
We realize a secure FTP client connection (protocol ftps) with this functionality. Alternatively it would be great to have an idf component that implements ftps client functionality (most like the https_client).
Additional context.
For ftps client it is needed to do an unsecure connection to the server to tell than, that it should be a secure connection. So we create a tls client and change the id to the before opened (unsecure) connection. Also we set the connection state to CONNECTING.
usage before migration to idf version 5:
The text was updated successfully, but these errors were encountered: