mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 01:08:27 +00:00
Changed the server certificate verification API
This commit is contained in:
parent
03a577cccd
commit
b08e22ab00
3 changed files with 8 additions and 6 deletions
|
@ -17,7 +17,7 @@ int main(void) {
|
|||
httplib::SSLClient cli("localhost", 8080);
|
||||
// httplib::SSLClient cli("google.com");
|
||||
cli.set_ca_cert_path(CA_CERT_FILE);
|
||||
cli.skip_server_certificate_verification(true);
|
||||
cli.enable_server_certificate_verification(true);
|
||||
#else
|
||||
httplib::Client cli("localhost", 8080);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue