|Applies To||RSA BSAFE SSL-C|
|Issue||To structure a multithreaded SSL-C application|
If a SSL_CTX structure is created at each thread, doesn't one of those threads need to do lock handling?
|Resolution||Page 38 of SSL-C 2.1 User's Manual|
The suggested way of structuring a multi-threaded application is on page 38 of the SSL-C 2.1 User's Manual.
Have a shared SSL_CTX structure with SSL structures created for each thread. The SSL_CTX structure sets up the "defaults" for the individual SSL objects used by your threads. Under this model, you normally wouldn't have threads changing the SSL_CTX structure and hence no locking of it is required. If you deviate from this model and have threads modifying the SSL_CTX structure then you need to set up your own locking mechanism.
|Legacy Article ID||a5982|