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.


**Which OS? Which thread library? pthread/Solaris thread/Win Thread etc?
If there is a seq fault, then what does the core file say about the stack
trace?



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]).


** I think to safely use openssl in a MT environment, you also have to
implement the callback functions
as described in:
http://www.openssl.org/docs/crypto/threads.html




DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Ltd. does not accept any liability for virus infected mails.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to