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

Function UpdateServerPolicy

src/iocore/net/SSLConfig.cc:279–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277}
278
279int
280UpdateServerPolicy(const char * /* name ATS_UNUSED */, RecDataT /* data_type ATS_UNUSED */, RecData data,
281 void * /* cookie ATS_UNUSED */)
282{
283 SSLConfigParams *params = SSLConfig::acquire();
284 char *verify_server = data.rec_string;
285 if (params != nullptr && verify_server != nullptr) {
286 Dbg(dbg_ctl_ssl_load, "New Server Policy %s", verify_server);
287 params->SetServerPolicy(verify_server);
288 } else {
289 Dbg(dbg_ctl_ssl_load, "Failed to load new Server Policy %p %p", verify_server, params);
290 }
291 return 0;
292}
293
294int
295UpdateServerPolicyProperties(const char * /* name ATS_UNUSED */, RecDataT /* data_type ATS_UNUSED */, RecData data,

Callers

nothing calls this directly

Calls 2

acquireFunction · 0.85
SetServerPolicyMethod · 0.80

Tested by

no test coverage detected