Added OpenSSL support. #5

This commit is contained in:
yhirose committed 2017-04-21 23:13:30 -04:00
1 parent 2c276ed31a
commit 22f124f871
8 files changed
+373 -100

No files matched your search

+14 -1
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.