Does recursive mutex lock in openssl will affect other openssl users in same system?
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Thanks for your information.
But, sorry for asking the same kind of question in this regard.
Since I am making all the mutexs to recursive lock (because I will get mutex number to lock during run time), will that affect other threads/processes which uses OpenSSL where those other threads/processes might not need the recursive mutex?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.