MCPcopy Create free account
hub / github.com/chrxh/alien / SSLThreadLocks

Method SSLThreadLocks

external/cpp-httplib/httplib.h:7268–7272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7266 class SSLThreadLocks {
7267 public:
7268 SSLThreadLocks() {
7269 openSSL_locks_ =
7270 std::make_shared<std::vector<std::mutex>>(CRYPTO_num_locks());
7271 CRYPTO_set_locking_callback(locking_callback);
7272 }
7273
7274 ~SSLThreadLocks() { CRYPTO_set_locking_callback(nullptr); }
7275

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected