Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add setter method for sockfd to esp_tls_t structure (IDFGH-9514) #10871

Closed
KaFu61 opened this issue Mar 1, 2023 · 0 comments
Closed

add setter method for sockfd to esp_tls_t structure (IDFGH-9514) #10871

KaFu61 opened this issue Mar 1, 2023 · 0 comments
Assignees
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally Type: Feature Request Feature request for IDF

Comments

@KaFu61
Copy link

KaFu61 commented Mar 1, 2023

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:

tls->sockfd = socketHandle
tls->conn_state = ESP_TLS_CONNECTING
@KaFu61 KaFu61 added the Type: Feature Request Feature request for IDF label Mar 1, 2023
@github-actions github-actions bot changed the title add setter method for sockfd to esp_tls_t structure add setter method for sockfd to esp_tls_t structure (IDFGH-9514) Mar 1, 2023
@espressif-bot espressif-bot added the Status: Opened Issue is new label Mar 1, 2023
@espressif-bot espressif-bot added Status: In Progress Work is in progress and removed Status: Opened Issue is new labels Mar 13, 2023
@espressif-bot espressif-bot added Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally Resolution: Done Issue is done internally and removed Status: In Progress Work is in progress Resolution: NA Issue resolution is unavailable labels Apr 16, 2023
espressif-bot pushed a commit that referenced this issue May 5, 2023
* Added the setter function to set the connection sockfd value
Closes #10871
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally Type: Feature Request Feature request for IDF
Projects
None yet
Development

No branches or pull requests

3 participants