LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-28-2016, 06:33 AM   #1
T.Selvan
LQ Newbie
 
Registered: Jan 2016
Posts: 3

Rep: Reputation: Disabled
Post 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.
 
Old 01-29-2016, 03:05 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,153

Rep: Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265
A mutex defined in one process is unrelated to a mutex in another process.
 
1 members found this post helpful.
Old 02-03-2016, 12:19 AM   #3
T.Selvan
LQ Newbie
 
Registered: Jan 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hi,

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?

Thanks in advance.
 
Old 02-09-2016, 12:59 AM   #4
T.Selvan
LQ Newbie
 
Registered: Jan 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
Any reply to this thread will really helpfull for me

Quote:
Originally Posted by smallpond View Post
A mutex defined in one process is unrelated to a mutex in another process.
Any reply to this thread will really helpful for me.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
openssl: any simple examples no how to use openssl to do some decryption? eantoranz Programming 7 07-26-2012 07:57 PM
install of openssl-0.9.8b-8.3.el5 conflicts with file from package openssl-0.9.8b-8.3 jsaravana87 Linux - Server 1 09-26-2011 01:02 PM
Debian OpenSSL Vulnerability may affect other distro servers as well rickh Linux - Security 5 05-16-2008 10:35 AM
oops openssl-0.9.8e over openssl-0.9.8d bad install now 2 copies? rcorkum Slackware 4 06-29-2007 01:58 AM
Possible system compromise (slackware linux 10.2, apache 1.3.33, OpenSSL 0.9.7g) Noido Linux - Security 9 05-11-2006 03:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration