spdyd: Use SSL_CTX_use_certificate_chain_file

This commit is contained in:
Tatsuhiro Tsujikawa 2012-07-26 21:46:05 +09:00
parent 24453cf0bd
commit 17802de7f7
1 changed files with 2 additions and 2 deletions

View File

@ -912,8 +912,8 @@ int SpdyServer::run()
std::cerr << "SSL_CTX_use_PrivateKey_file failed." << std::endl; std::cerr << "SSL_CTX_use_PrivateKey_file failed." << std::endl;
return -1; return -1;
} }
if(SSL_CTX_use_certificate_file(ssl_ctx, config_->cert_file.c_str(), if(SSL_CTX_use_certificate_chain_file(ssl_ctx,
SSL_FILETYPE_PEM) != 1) { config_->cert_file.c_str()) != 1) {
std::cerr << "SSL_CTX_use_certificate_file failed." << std::endl; std::cerr << "SSL_CTX_use_certificate_file failed." << std::endl;
return -1; return -1;
} }