Skip to content

Commit

Permalink
feat: [client] when cert path is empty, set default cert path (qicosm…
Browse files Browse the repository at this point in the history
  • Loading branch information
helintongh authored Jul 29, 2023
1 parent 0cc289a commit 29769e5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/cinatra/coro_http_client.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,10 @@ class coro_http_client {
return false;
}

if (base_path.empty() && cert_file.empty()) {
ssl_ctx_->set_default_verify_paths();
}

ssl_ctx_->set_verify_mode(verify_mode);

// ssl_ctx_.add_certificate_authority(asio::buffer(CA_PEM));
Expand Down

0 comments on commit 29769e5

Please sign in to comment.