| 372 | } |
| 373 | |
| 374 | bool HTTPClient::matches(const std::string &value, const std::string &sregex) { |
| 375 | if (sregex == ".*") |
| 376 | return true; |
| 377 | try { |
| 378 | utils::Regex rgx(sregex); |
| 379 | return rgx.match(value); |
| 380 | } catch (const Exception &) { |
| 381 | return false; |
| 382 | } |
| 383 | } |
| 384 | |
| 385 | void HTTPClient::configure_secure_connection(CURL *http_session) { |
| 386 | logger_->log_debug("Using certificate file \"%s\"", ssl_context_service_->getCertificateFile()); |
no test coverage detected