Replies: 1 comment
-
Agreed, RFC 5077 is pretty complicated and the documentation is sparse. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
@AnthonyGrondin , @ivmarkov Hi, really need your help and guidance with this issue.
I need to connect to an ftp server that require TLS session reuse/resumption.
The way I understand it work, is that after doing the work with the ftp on the control channel, I need to take the TLS session in some way and use it on another socket/port that the server provides me (this is ftp passive mode).
I know that mbedtls supports that, but couldn't find how to do that with the rust crate.
The challenges I can see here:
As I started diving into this I saw there is
mbedtls_ssl_get_session
andmbedtls_ssl_set_session
, so thought maybe I need to add aget_ssl_session
andconnect_resume_ssl_session
to get the info from previous session and use that info instead of info that's already there?Or maybe add this as parameter to the new already so can pass it to
init_ssl
instead of initializing newssl_conext
?Also, how is memory manged in mbedtls? If I get the session do I get ownership of the memory or do I need to copy it? Same when I give it to the various functions?
And I don't know if anything more than that is required. I've seen there are more than a single technique for resuming TLS sessions.
Any guidance would be highly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions