launchdarkly / cpp-sdks

C++ Client/Server SDKs
Other
5 stars 2 forks source link

feat: add ability to skip TLS peer verification #399

Closed cwaldren-ld closed 2 months ago

cwaldren-ld commented 2 months ago

This PR adds in a new configuration option allowing users to disable peer verification in TLS handshake.

Additionally, it implements two new contract test capabilities to verify this behavior (tls:verify-peer and tls:skip-verify-peer.)

Because the functionality was added to the sse library and the shared asio requester, both the server and client gain this functionality. Therefore I've added bindings for both along with the contract test implementations.