From 17802de7f756913056a84fcf21367f628487f1c5 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 26 Jul 2012 21:46:05 +0900 Subject: [PATCH] spdyd: Use SSL_CTX_use_certificate_chain_file --- examples/SpdyServer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/SpdyServer.cc b/examples/SpdyServer.cc index e1590cf2..58721ca5 100644 --- a/examples/SpdyServer.cc +++ b/examples/SpdyServer.cc @@ -912,8 +912,8 @@ int SpdyServer::run() std::cerr << "SSL_CTX_use_PrivateKey_file failed." << std::endl; return -1; } - if(SSL_CTX_use_certificate_file(ssl_ctx, config_->cert_file.c_str(), - SSL_FILETYPE_PEM) != 1) { + if(SSL_CTX_use_certificate_chain_file(ssl_ctx, + config_->cert_file.c_str()) != 1) { std::cerr << "SSL_CTX_use_certificate_file failed." << std::endl; return -1; }