| 277 | } |
| 278 | |
| 279 | int |
| 280 | UpdateServerPolicy(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 | |
| 294 | int |
| 295 | UpdateServerPolicyProperties(const char * /* name ATS_UNUSED */, RecDataT /* data_type ATS_UNUSED */, RecData data, |
nothing calls this directly
no test coverage detected