You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by jp...@apache.org on 2014/07/07 17:29:32 UTC
git commit: TS-2921: fix build failure from TS-2893
Repository: trafficserver
Updated Branches:
refs/heads/master 591633e73 -> b20bad15a
TS-2921: fix build failure from TS-2893
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/b20bad15
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/b20bad15
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/b20bad15
Branch: refs/heads/master
Commit: b20bad15a75f75e9b3e48499bef7bae8a6144f3b
Parents: 591633e
Author: Ryo Okubo <ro...@yahoo-corp.jp>
Authored: Mon Jul 7 08:28:47 2014 -0700
Committer: James Peach <jp...@apache.org>
Committed: Mon Jul 7 08:29:20 2014 -0700
----------------------------------------------------------------------
CHANGES | 3 +++
iocore/net/SSLUtils.cc | 4 ++--
2 files changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/b20bad15/CHANGES
----------------------------------------------------------------------
diff --git a/CHANGES b/CHANGES
index 9bce5b8..c57fd1c 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
-*- coding: utf-8 -*-
Changes with Apache Traffic Server 5.1.0
+ *) [TS-2921] Fix build failure from TS-2893.
+ Author: Ryo Okubo <ro...@yahoo-corp.jp>
+
*) [TS-2893: improved support for ECDSA certificates
Author: Wei Sun <su...@yahoo-inc.com>
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/b20bad15/iocore/net/SSLUtils.cc
----------------------------------------------------------------------
diff --git a/iocore/net/SSLUtils.cc b/iocore/net/SSLUtils.cc
index d08ca1f..3546219 100644
--- a/iocore/net/SSLUtils.cc
+++ b/iocore/net/SSLUtils.cc
@@ -973,7 +973,7 @@ SSLInitServerContext(
if (!params->serverCertChainFilename && !sslMultCertSettings.ca && sslMultCertSettings.cert) {
SimpleTokenizer cert_tok(sslMultCertSettings.cert, SSL_CERT_SEPARATE_DELIM);
- SimpleTokenizer key_tok((char *)(sslMultCertSettings.key ? sslMultCertSettings.key : ""), SSL_CERT_SEPARATE_DELIM);
+ SimpleTokenizer key_tok((char *)(sslMultCertSettings.key ? (const char *)sslMultCertSettings.key : ats_strdup("")), SSL_CERT_SEPARATE_DELIM);
if (sslMultCertSettings.key && cert_tok.getNumTokensRemaining() != key_tok.getNumTokensRemaining()) {
Error("the number of certificates in ssl_cert_name and ssl_key_name doesn't match");
@@ -983,7 +983,7 @@ SSLInitServerContext(
for (const char * certname = cert_tok.getNext(); certname; certname = cert_tok.getNext()) {
completeServerCertPath = Layout::relative_to(params->serverCertPathOnly, certname);
if (SSL_CTX_use_certificate_chain_file(ctx, completeServerCertPath) < 0) {
- SSLError(NULL, "failed to load certificate chain from %s", (const char *) completeServerCertPath);
+ SSLError("failed to load certificate chain from %s", (const char *)completeServerCertPath);
goto fail;
}