Reverted context::tls_server to context::ssl23_server change, and fixed stretch CI
This commit is contained in:
parent
972ef8ebf9
commit
60a332e124
1 changed files with 5 additions and 4 deletions
|
|
@ -29,13 +29,14 @@ namespace SimpleWeb {
|
||||||
*/
|
*/
|
||||||
Server(const std::string &certification_file, const std::string &private_key_file, const std::string &verify_file = std::string())
|
Server(const std::string &certification_file, const std::string &private_key_file, const std::string &verify_file = std::string())
|
||||||
: ServerBase<HTTPS>::ServerBase(443),
|
: ServerBase<HTTPS>::ServerBase(443),
|
||||||
// This includes TLS as well
|
#if(ASIO_STANDALONE && ASIO_VERSION >= 101300) || BOOST_ASIO_VERSION >= 101300
|
||||||
context(asio::ssl::context::sslv23_server) {
|
context(asio::ssl::context::tls_server) {
|
||||||
// Disabling SSL, TLS 1.0 and 1.1 (see RFC 8996)
|
// Disabling SSL, TLS 1.0 and 1.1 (see RFC 8996)
|
||||||
context.set_options(asio::ssl::context::no_sslv2);
|
|
||||||
context.set_options(asio::ssl::context::no_sslv3);
|
|
||||||
context.set_options(asio::ssl::context::no_tlsv1);
|
context.set_options(asio::ssl::context::no_tlsv1);
|
||||||
context.set_options(asio::ssl::context::no_tlsv1_1);
|
context.set_options(asio::ssl::context::no_tlsv1_1);
|
||||||
|
#else
|
||||||
|
context(asio::ssl::context::tlsv12) {
|
||||||
|
#endif
|
||||||
|
|
||||||
context.use_certificate_chain_file(certification_file);
|
context.use_certificate_chain_file(certification_file);
|
||||||
context.use_private_key_file(private_key_file, asio::ssl::context::pem);
|
context.use_private_key_file(private_key_file, asio::ssl::context::pem);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue