I joined the OpenSSL mailing list a couple of weeks ago with the same
question.  I didn't get a reply at the time, so I'm not sure if I did it
correctly.  The "solution" I discovered works on Windows and Linux, but
doesn't work on Mac, iPhone, or iPad.

Here is the sample code I wrote to show how to do session re-use on Linux
and Windows:

http://charette.no-ip.com:81/asio-openssl/

Stéphane Charette


On Sun, Apr 22, 2012 at 10:40, Nathan Smyth <naf...@ymail.com> wrote:

> I have some (non-web) applications which open a number of SSL connections
> between each other. At the moment, a new SSL connection (session) is
> established on each connect. It seems I can benefit from SSL session reuse.
>
>
> I was wondering if anyone has any example code (or can just describe the
> procedure) of how to implement session reuse. I had a quick look through
> the docs, which (I think) suggests that I set flags for the server and have
> the client present the session ID.  But I haven't been able to get this to
> work, nor am I sure of how this fits within the SSL_connect()/_accept()
> calls.
>
> Any advice (for a dummie like me) greatly appreciated.
>
> Thanks N
>
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    openssl-users@openssl.org
> Automated List Manager                           majord...@openssl.org
>

Reply via email to