Fix startup errors with SSL cert generation

Use SSL API directly, skip boost layer
This commit is contained in:
Howard Chu 2019-03-08 15:15:24 +00:00
parent 49afbd0c53
commit b8c2e21cba
No known key found for this signature in database
GPG key ID: FD2A70B44AB11BA7
2 changed files with 6 additions and 38 deletions

View file

@ -59,7 +59,6 @@ namespace net_utils
bool is_ssl(const unsigned char *data, size_t len);
ssl_context_t create_ssl_context(const std::pair<std::string, std::string> &private_key_and_certificate_path, std::list<std::string> allowed_certificates, std::vector<std::vector<uint8_t>> allowed_fingerprints, bool allow_any_cert);
void use_ssl_certificate(ssl_context_t &ssl_context, const std::pair<std::string, std::string> &private_key_and_certificate_path);
bool create_ssl_certificate(std::string &pkey_buffer, std::string &cert_buffer);
bool is_certificate_allowed(boost::asio::ssl::verify_context &ctx, const ssl_context_t &ssl_context);
bool ssl_handshake(boost::asio::ssl::stream<boost::asio::ip::tcp::socket> &socket, boost::asio::ssl::stream_base::handshake_type type, const epee::net_utils::ssl_context_t &ssl_context);
bool ssl_support_from_string(ssl_support_t &ssl, boost::string_ref s);