Does recursive mutex lock in openssl will affect other openssl users in same system?
I need a clarification in below problem.
Problem:
I am writing a wrapper to use openssl in which I am locking (mutex) and adding certificate information to openssl store using X509_STORE_add_cert() function and also doing some more steps followed by this.
Here my problem is, to update openssl store, I have locked the whole operation before calling X509_STORE_add_cert() and with in this function once again the same lock is used to actually update the openssl store. So, I have used "pthread_mutex_recursive" attribute for mutex and my code works fine.
But, since I am initializing array of global mutex list with "pthread_mutex_recursive", will it affect the other openssl clients in the system?
Kindly reply and help me in this regard.
Thanks in advance.
|