000025846 - To structure a multithreaded SSL-C application

Document created by RSA Customer Support Employee on Jun 16, 2016Last modified by RSA Customer Support Employee on Apr 22, 2017
Version 2Show Document
  • View in full screen mode

Article Content

Article Number000025846
Applies ToRSA BSAFE SSL-C
multi-threaded
IssueTo 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?
ResolutionPage 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 IDa5982

Attachments

    Outcomes