Skip to content

Commit 308c158

Browse files
committed
ssl: remove a misleading comment
The function ossl_sslctx_session_get_cb(), which is passed to SSL_CTX_sess_set_get_cb(), will never be called on the client-side since it is for the server-side session caching. Reference: #170
1 parent 2475d94 commit 308c158

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

ext/openssl/ossl_ssl.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,6 @@ ossl_call_session_get_cb(VALUE ary)
377377
return rb_funcallv(cb, id_call, 1, &ary);
378378
}
379379

380-
/* this method is currently only called for servers (in OpenSSL <= 0.9.8e) */
381380
static SSL_SESSION *
382381
#if OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(LIBRESSL_VERSION_NUMBER)
383382
ossl_sslctx_session_get_cb(SSL *ssl, const unsigned char *buf, int len, int *copy)

0 commit comments

Comments
 (0)