How to get SSL * from Boost.ASIO?

I am implementing a client SSL connection through Boost.ASIO. In accordance with the reference book I use SSL_get_verify_result, I need to call so that everything is in order with the server certificate. Unfortunately, it takes a pointer to a structure SSL, and I don't know how to get this from ASIO.

I tried using a function impl()for my object boost::asio::ssl::stream<boost::asio::ip::tcp::socket>, but the compiler complains that it returns something else.

There must be a way to get this information. Does anyone know this?

+3
source share
2 answers

. , impl() boost::asio::ssl::detail::openssl_stream_service::impl_struct*. , , , , . , SSL, , OpenSSL BIO .

+3

ASIO : call set_verify_mode ssl.

impl() SSL_CTX *, .

0

Source: https://habr.com/ru/post/1778917/


All Articles