crystalidea / cpp-httplib-mbedtls

Use cpp-httplib with mbedtls
MIT License
12 stars 3 forks source link

cpp-httplib-mbedtls

This library makes a bridge between cpp-httplib and mbedtls by emulating OpenSSL API.

In order to use it, define CPPHTTPLIB_OPENSSL_SUPPORT and add the openssl folder to includes. Tested with cpp-httplib v0.15.3 and mbtdtls 3.5.2, should work with later versions.

httplib::Client seem to work fine with https, however httplib::SSLServer fails in the *SSL_accept function. It can be observed in the sample app by opening https://127.0.0.1:8081/hi in a browser, however it works when using wget, see the sample app for details. Maybe I'll fix when I have time time or you can fix it now :wink:.

Looking forward to any PR with fixes & improvements.

TODO

Disclaimer