mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-11-14 19:03:30 +00:00
Changed the server certificate verification API
This commit is contained in:
1 parent
03a577cccd
commit
b08e22ab00
3 files changed
+8
-6
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user