Re: session caching with multiple threads

2007-01-31 Thread Alexis Lefort
I still have another question, how can I read the reference counter of a SSL_SESSION object? If I can read it, I could know if another task is using the SESSION. It could prevent me from deleting the pointer to the SESSION. Regards, Alexis Alexis Lefort a écrit : Hello all, I am doing,

session caching with multiple threads

2007-01-30 Thread Alexis Lefort
Hello all, I am doing, in C language, a SSL client with openSSL 0.9.7g I have multiple clients (about 10) using the same SSL_CTX and connecting to 2 different servers. (5 clients on each for example). I wonder how SSL_get_session, SSL_set_session ans SSL_SESSION_free have to be used there.