| 20 | auto constexpr MaxChunkSize = 24 * 1024 * 1024; |
| 21 | |
| 22 | void configureClient(httplib::SSLClient& client) |
| 23 | { |
| 24 | client.set_ca_cert_path("./resources/ca-bundle.crt"); |
| 25 | client.enable_server_certificate_verification(true); |
| 26 | if (auto result = client.get_openssl_verify_result()) { |
| 27 | throw std::runtime_error("OpenSSL verify error: " + std::string(X509_verify_cert_error_string(result))); |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | httplib::Result executeRequest(std::function<httplib::Result()> const& func, bool withRetry = true) |
| 32 | { |
no test coverage detected