소스 검색

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.
       // OpenSSL refutes this as a bug in Python session handling.
       // https://github.com/openssl/openssl/issues/1550
       // https://github.com/openssl/openssl/issues/1550
       // But it works for us too.
       // 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;
       const unsigned char * P = m_Main->m_sessionidSerialized;
       SSL_SESSION * Session = DebugNotNull(d2i_SSL_SESSION(NULL, &P, m_Main->m_sessionidSerializedLen));
       SSL_SESSION * Session = DebugNotNull(d2i_SSL_SESSION(NULL, &P, m_Main->m_sessionidSerializedLen));
       if (!SSL_set_session(m_ssl, Session))
       if (!SSL_set_session(m_ssl, Session))