
Hi Jonathan, On Wed, 16 Jul 2025 at 19:54, Jonathan Wakely via Boost < boost@lists.boost.org> wrote:
Hi,
I am trying to find out if Asio is usable with new post-quantum cryptographic algorithms in OpenSSL, e.g. when using TLS 1.3 connections and pure ML-DSA TLS certificates. The main question is whether Asio is affected by the much larger size of the new certificate types.
While I haven't tried it myself, I don't think it should be affected. asio::ssl::context is a thin wrapper over OpenSSL SSL_CTX. You can check the implementations here: https://github.com/boostorg/asio/blob/develop/include/boost/asio/ssl/impl/co... If for whatever reason the functions exposed by ssl::context are insufficient, you can get the underlying SSL_CTX* by calling context::native_handle() and then use the OpenSSL primitives that fit your needs. Then construct a ssl::stream using such context, and you should be ready to go. Regards, Rubén.