mirror of
https://github.com/moparisthebest/spdylay
synced 2024-11-13 21:15:09 -05:00
spdyd: Use SSL_CTX_use_certificate_chain_file
This commit is contained in:
parent
24453cf0bd
commit
17802de7f7
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user