cpprestsdk
cpprestsdk copied to clipboard
Is there a way to force Casablanca to always use TLS 1.2 and refuse to connect otherwise?
Thanks, Gergely
I have the same requirement. Currently, we did the following
https://github.com/microsoft/cpprestsdk/blob/master/Release/src/http/client/http_client_winhttp.cpp#L918
Change it to
DWORD secure_protocols(WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_2);
After the recompilation, it seems the Cpprest can still accept TLS 1.0 and TLS 1.1 requests. Can anyone take a look?