浏览代码

Comment on possibly better session caching API

Source commit: 0c133f95ea06feecbd5753f33607c7d90b79a3b1
Martin Prikryl 3 月之前
父节点
当前提交
f39dfdd8a0
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      source/filezilla/AsyncSslSocketLayer.cpp

+ 2 - 0
source/filezilla/AsyncSslSocketLayer.cpp

@@ -840,6 +840,8 @@ int CAsyncSslSocketLayer::InitSSLConnection(bool clientMode,
       // OpenSSL refutes this as a bug in Python session handling.
       // https://github.com/openssl/openssl/issues/1550
       // But it works for us too.
+      // For alternative (better) API, see
+      // https://github.com/notroj/neon/pull/203/commits/36c918a66691ed1a40ab512821aa8c278081818f
       const unsigned char * P = m_Main->m_sessionidSerialized;
       SSL_SESSION * Session = DebugNotNull(d2i_SSL_SESSION(NULL, &P, m_Main->m_sessionidSerializedLen));
       if (!SSL_set_session(m_ssl, Session))