| 304 | } |
| 305 | |
| 306 | void |
| 307 | SSLConfigParams::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 | |
| 325 | void |
| 326 | SSLConfigParams::SetServerPolicy(const char *verify_server) |
no test coverage detected