aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2017-11-26 19:41:59 +0900
committerKazuki Yamaguchi <k@rhe.jp>2017-11-26 19:47:26 +0900
commit308c158d7be4208591519a4d276014178e84f434 (patch)
treeaf78e4b9759d570253bc1445eaee387c6871be8c
parent2475d94517b46b584b1ffc500865ca00c66d6ab6 (diff)
downloadruby-openssl-308c158d7be4208591519a4d276014178e84f434.tar.gz
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: https://github.com/ruby/openssl/issues/170
-rw-r--r--ext/openssl/ossl_ssl.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/ext/openssl/ossl_ssl.c b/ext/openssl/ossl_ssl.c
index 8cdb9737..85ef8709 100644
--- a/ext/openssl/ossl_ssl.c
+++ b/ext/openssl/ossl_ssl.c
@@ -377,7 +377,6 @@ ossl_call_session_get_cb(VALUE ary)
return rb_funcallv(cb, id_call, 1, &ary);
}
-/* this method is currently only called for servers (in OpenSSL <= 0.9.8e) */
static SSL_SESSION *
#if OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(LIBRESSL_VERSION_NUMBER)
ossl_sslctx_session_get_cb(SSL *ssl, const unsigned char *buf, int len, int *copy)