MCPcopy Create free account
hub / github.com/apache/trafficserver / clearCTX

Method clearCTX

src/iocore/net/SSLConfig.cc:973–985  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

971}
972
973void
974SSLConfigParams::clearCTX(const std::string &client_cert) const
975{
976 ink_mutex_acquire(&ctxMapLock);
977 for (auto ctx_map_iter = top_level_ctx_map.begin(); ctx_map_iter != top_level_ctx_map.end(); ++ctx_map_iter) {
978 auto ctx_iter = ctx_map_iter->second.find(client_cert);
979 if (ctx_iter != ctx_map_iter->second.end()) {
980 ctx_iter->second = nullptr;
981 Dbg(dbg_ctl_ssl_load, "Clear client cert %s %s", ctx_map_iter->first.c_str(), ctx_iter->first.c_str());
982 }
983 }
984 ink_mutex_release(&ctxMapLock);
985}
986
987shared_SSL_CTX
988SSLConfigParams::getCTX(const char *client_cert, const char *key_file, const char *ca_bundle_file, const char *ca_bundle_path) const

Callers 1

updateCTXMethod · 0.95

Calls 6

ink_mutex_acquireFunction · 0.85
ink_mutex_releaseFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
findMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected