Using boost::asio library but specifying a deprecated hardcoded protocol.
Only use modern protocols such as TLS 1.2 or TLS 1.3.
In the following example, the
sslv2 protocol is specified. This protocol is out of date and its use is not recommended.
In the corrected example, the
tlsv13 protocol is used instead.