TLS/SSL session resume on FTP transfer connection with OpenSSL

后端 未结 2 1688
春和景丽
春和景丽 2021-01-03 07:37

I\'m open source developer implementing FTP client (WinSCP).

I\'m trying to resume TLS/SSL session from the FTP control socket on the transfer socket. Some FTP serve

2条回答
  •  离开以前
    2021-01-03 08:22

    You must specifically enable client session caching on your SSL_CTX object with:

    SSL_CTX_set_session_cache_mode(ctx, SSL_SESS_CACHE_CLIENT);
    

    You may also need to increase the default session cache timeout (the default is 300 seconds), using SSL_CTX_set_timeout().

    (You must also be creating your SSL objects from the same SSL_CTX object).

提交回复
热议问题