Skip to content
This repository was archived by the owner on Jun 12, 2018. It is now read-only.
This repository was archived by the owner on Jun 12, 2018. It is now read-only.

C2039 'tlsv12': is not a member of 'boost::asio::ssl::context' server_https.hpp #222

@imvishnu83

Description

@imvishnu83

We get an error in

Server(const std::string& cert_file, const std::string& private_key_file, const std::string& verify_file=std::string()):
ServerBase::ServerBase(443), context(boost::asio::ssl::context::tlsv12) {
context.use_certificate_chain_file(cert_file);
context.use_private_key_file(private_key_file, boost::asio::ssl::context::pem);

        if(verify_file.size()>0) {
            context.load_verify_file(verify_file);
            context.set_verify_mode(boost::asio::ssl::verify_peer | boost::asio::ssl::verify_fail_if_no_peer_cert |
                                    boost::asio::ssl::verify_client_once);
            set_session_id_context=true;
        }
    }

we get four error

  1. function "boost::asio::ssl::context::context(const boost::asio::ssl::context &)" (declared implicitly) cannot be referenced -- it is a deleted function server_https.hpp

  2. class "boost::asio::ssl::context" has no member "tlsv12" server_https.hpp

  3. 'tlsv12': is not a member of 'boost::asio::ssl::context' server_https.hpp

  4. 'tlsv12': undeclared identifier server_https.hpp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions