You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ma...@apache.org on 2019/04/15 23:25:38 UTC
[trafficserver] branch master updated: Cleanup: Use internal
linkage for functions which are only needed in SSLUtils.cc
This is an automated email from the ASF dual-hosted git repository.
masaori pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 574cf2b Cleanup: Use internal linkage for functions which are only needed in SSLUtils.cc
574cf2b is described below
commit 574cf2bfb6602184f18f4fe05f4d4ad4b603cef0
Author: Masaori Koshiba <ma...@gmail.com>
AuthorDate: Mon Apr 15 09:04:14 2019 +0900
Cleanup: Use internal linkage for functions which are only needed in SSLUtils.cc
---
iocore/net/SSLUtils.cc | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/iocore/net/SSLUtils.cc b/iocore/net/SSLUtils.cc
index 38009d5..d2e2e97 100644
--- a/iocore/net/SSLUtils.cc
+++ b/iocore/net/SSLUtils.cc
@@ -169,7 +169,7 @@ SSL_CTX_add_extra_chain_cert_file(SSL_CTX *ctx, const char *chainfile)
return SSL_CTX_add_extra_chain_cert_bio(ctx, bio);
}
-bool
+static bool
ssl_session_timed_out(SSL_SESSION *session)
{
return SSL_SESSION_get_timeout(session) < (long)(time(nullptr) - SSL_SESSION_get_time(session));
@@ -273,7 +273,7 @@ ssl_rm_cached_session(SSL_CTX *ctx, SSL_SESSION *sess)
session_cache->removeSession(sid);
}
-int
+static int
set_context_cert(SSL *ssl)
{
SSL_CTX *ctx = nullptr;
@@ -344,7 +344,7 @@ done:
}
// Callback function for verifying client certificate
-int
+static int
ssl_verify_client_callback(int preverify_ok, X509_STORE_CTX *ctx)
{
Debug("ssl", "Callback: verify client cert");