Boost logo

Boost Users :

From: gfsdjkgf_at_[hidden]
Date: 2008-05-09 16:43:02


Hello,

i want to etablish a secure communication between my client and my server. To do so, I use boost.asio with openssl.

First question: Do I have to build and include the openssl library libraries on my own (I do so now and it is working fine...)?

Second question:

The ssl-context for server and client is:

        ssl::context Context(IOService, ssl::context::sslv23);
        Context.set_options(ssl::context::default_workarounds);
        Context.set_verify_mode(ssl::context::verify_none);

the client simply connects to the (listening) server

        pSSLSocket->lowest_layer().connect(ip::tcp::endpoint(ip::address_v4(acIP),999));
        pSSLSocket->handshake(ssl::stream_base::client);

the server executes an async_handshake if it accepts a new connection

        m_SSLSocket.async_handshake(ssl::stream_base::server,
                        bind(&CConnection::OnHandshake, this, placeholders::error));

Unfortunately the async_handshake call (or the corresponding run call) fails. I am not sure why as I am not able to attach a debugger to my application, but the application definitely crashes.
What's wrong?


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net