Merge pull request #218 from p0lloloco/master

Add ssl_context member function to SSLClient
This commit is contained in:
yhirose 2019-09-18 23:08:14 -04:00 committed by GitHub
commit 81610ee080
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -706,6 +706,8 @@ public:
long get_openssl_verify_result() const;
SSL_CTX* ssl_context() const noexcept;
private:
virtual bool process_and_close_socket(
socket_t sock, size_t request_count,
@ -3482,6 +3484,10 @@ inline long SSLClient::get_openssl_verify_result() const {
return verify_result_;
}
inline SSL_CTX* SSLClient::ssl_context() const noexcept {
return ctx_;
}
inline bool SSLClient::process_and_close_socket(
socket_t sock, size_t request_count,
std::function<bool(Stream &strm, bool last_connection,