Hello everyone,

I am working with a VPN server and using openssl APIs to handle SSL on
Linux machine.
My server work fine with single client but it shows the segmentation
fault when i test it
with multiple clients.

I have different threads in my server handling different
functionalities. Read and write threads are working
simultaneously sharing the same SSL structure.
The structure of my server is..

1- initializing the openssl library.
2. Context setup(certificates etc).
3. TCP connection.
4. SSL_new(ctx)
5. ssl_set_fd..
6. ssl_accept(..)
7. Result of the certificate verification...
8. Starting the threads...Read and write..
9. Successful disconnection request from any of the connected client,
i am freeing the object memory of that particular connection..
   using SSL_clear(..)let pssl[j] so SSL_clear(pss[j]).
but i am not able to check whether pssl[j] as been freed or not..
is there any way to check the structure values after SSL_clear(..)
I can not NULL the structure as i need rest of the ssl values that are
initialized during the start of the program..
Or is it possible to use SSL_free() and then again reinitialize all
the SSL structure... with all values it needed...


Could anyone please suggest me how to use SSL structure for multiple clients..??
Waiting for the reply...

Thanx in advance...

-- 
regards,
Vineeta Kumari
Software engg
Mobera Systems
Chandigarh
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to