mirror of
https://github.com/yhirose/cpp-httplib
synced 2024-11-21 06:26:02 -07:00
Added ssl_context member function to SSLClient in
order to allow access to the SSL_CTX struct, for example to load the windows cert store
This commit is contained in:
parent
47bc7456d2
commit
c7f8561472
1 changed files with 6 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue