Boost logo

Boost :

From: Dirk Griffioen (a.griffioen4_at_[hidden])
Date: 2005-08-29 05:31:56

Hi All,

We would like to make the remark we created a first version of a secure
(ssl/tls) extension to ASIO.

It's use should be regarded as an extension to ASIO and configurable
with the type of ssl a user has.

 From the test code (the server):

#include <asio.hpp>

When the server accepts a connection it then calls handle_accept to
secure the socket:

  void handle_accept(const asio::error& error)
    if (!error)
        std::cout << "server connected..." << std::endl;

        // Secure the connection
            boost::bind(&impl::handle_secure, this, asio::arg::error)

After that it's a matter of async_recv/send - but the connection now is

the variable needed is:

  asio::tls_socket socket_;

Additions to ASIO are:


(And (to a lesser extent) the same for GnuTls.)

Our question is, can we donate this to (boost::)asio?

And if so, how do we approach this?

Cheers, Dirk

Boost list run by bdawes at, gregod at, cpdaniel at, john at