Skip to content

Remove SSLInit #2102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 12, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions httplib.h
Original file line number Diff line number Diff line change
Expand Up @@ -9063,14 +9063,6 @@ inline bool process_client_socket_ssl(
return callback(strm);
}

class SSLInit {
public:
SSLInit() {
OPENSSL_init_ssl(
OPENSSL_INIT_LOAD_SSL_STRINGS | OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL);
}
};

// SSL socket stream implementation
inline SSLSocketStream::SSLSocketStream(
socket_t sock, SSL *ssl, time_t read_timeout_sec, time_t read_timeout_usec,
Expand Down Expand Up @@ -9191,8 +9183,6 @@ inline time_t SSLSocketStream::duration() const {
.count();
}

static SSLInit sslinit_;

} // namespace detail

// SSL HTTP server implementation
Expand Down
Loading