To follow up my previous quoting of the FAQ:
You create the SSL_CTX with SSL_CTX_new(), listen() on the appropriate
port, then accept() the connection, which gives you a file descriptor.
Spawn a thread to handle that descriptor. Use SSL_new(SSL_CTX *) to
generate a new SSL structure, and then us
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 t
You cannot share a single SSL connection across multiple threads
(i.e., your reader and writer must be in the same thread). This is
documented at http://www.openssl.org/support/faq.html#PROG1 thus:
1. Is OpenSSL thread-safe?
Yes (with limitations: an SSL connection may not concurrently be used
b
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