mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 01:08:27 +00:00
Wildcard support for verifying server certificate. fix #87
This commit is contained in:
parent
82193b9489
commit
3f42804a4f
5 changed files with 3548 additions and 90 deletions
|
@ -16,6 +16,7 @@ int main(void) {
|
|||
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
|
||||
httplib::SSLClient cli("localhost", 8080);
|
||||
// httplib::SSLClient cli("google.com");
|
||||
// httplib::SSLClient cli("www.youtube.com");
|
||||
cli.set_ca_cert_path(CA_CERT_FILE);
|
||||
cli.enable_server_certificate_verification(true);
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue