1
0
mirror of synced 2025-07-27 23:41:48 +03:00

Added OpenSSL support. #5

This commit is contained in:
yhirose
2017-04-21 23:00:00 -04:00
parent 2c276ed31a
commit 22f124f871
8 changed files with 373 additions and 100 deletions

View File

@ -52,4 +52,17 @@ int main(void)
}
```
Copyright (c) 2014 Yuji Hirose. All rights reserved.
OpenSSL Support
---------------
SSL support is available with `CPPHTTPLIB_OPENSSL_SUPPORT`. `libssl` and `libcrypto` should be linked.
```c++
#define CPPHTTPLIB_OPENSSL_SUPPORT
SSLServer svr("./key.pem", "./cert.pem");
SSLClient cli("localhost", 8080);
```
Copyright (c) 2017 Yuji Hirose. All rights reserved.