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

Method SetServerPolicyProperties

src/iocore/net/SSLConfig.cc:306–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304}
305
306void
307SSLConfigParams::SetServerPolicyProperties(const char *verify_server)
308{
309 if (strcmp(verify_server, "SIGNATURE") == 0) {
310 verifyServerProperties = YamlSNIConfig::Property::SIGNATURE_MASK;
311 } else if (strcmp(verify_server, "NAME") == 0) {
312 verifyServerProperties = YamlSNIConfig::Property::NAME_MASK;
313 } else if (strcmp(verify_server, "ALL") == 0) {
314 verifyServerProperties = YamlSNIConfig::Property::ALL_MASK;
315 } else if (strcmp(verify_server, "NONE") == 0) {
316 verifyServerProperties = YamlSNIConfig::Property::NONE;
317 } else {
318 Warning("%s is invalid for proxy.config.ssl.client.verify.server.properties. Should be one of ALL, SIGNATURE, NAME, or NONE. "
319 "Default is ALL",
320 verify_server);
321 verifyServerProperties = YamlSNIConfig::Property::NONE;
322 }
323}
324
325void
326SSLConfigParams::SetServerPolicy(const char *verify_server)

Callers 2

initializeMethod · 0.95

Calls 1

strcmpFunction · 0.85

Tested by

no test coverage detected