Re: openssl, threads and portable libraries

2006-07-26 Thread Friedrich Dominicus
Francis Brosnan Blazquez <[EMAIL PROTECTED]> writes: > > You can try using the pointer reference as unique identifier. Did you > try: > > gint thread_id = GPOINTER_TO_INT (g_thread_self ()); > > For a glib user I think it is the better way: Yes I think that could work, it was pointed out to m

Re: openssl, threads and portable libraries

2006-07-26 Thread Francis Brosnan Blazquez
El mié, 26-07-2006 a las 13:45 +0200, Friedrich Dominicus escribió: Hi Friedrich, > As pointed out glib2 does not have an idea of some unique thread > id (AFAIU) but as someone else has posted this might be different in > libapr. So my question was on the point. You can try using the pointer r

Re: openssl, threads and portable libraries

2006-07-26 Thread Friedrich Dominicus
"Jeremy Farrell" <[EMAIL PROTECTED]> writes: >> From: Friedrich Dominicus >> >> I'm trying to get into openssl programming and run into the >> following "problem". I've found nothing about that neither >> while searching the web nore looking into this lib. >> >> According to threads(3) and al

RE: openssl, threads and portable libraries

2006-07-26 Thread Jeremy Farrell
> From: Friedrich Dominicus > > I'm trying to get into openssl programming and run into the > following "problem". I've found nothing about that neither > while searching the web nore looking into this lib. > > According to threads(3) and also mentioned in "network > security with OpenSSL" fr

RE: openssl, threads and portable libraries

2006-07-25 Thread Fukuba, Yoshiki
ch Dominicus > Sent: Tuesday, July 25, 2006 3:30 PM > To: openssl-users@openssl.org > Subject: openssl, threads and portable libraries > > I'm trying to get into openssl programming and run into the > following "problem". I've found nothing about that neither &g

Re: openssl, threads and portable libraries

2006-07-25 Thread Friedrich Dominicus
Darryl Miles <[EMAIL PROTECTED]> writes: > Friedrich Dominicus wrote: >> According to threads(3) and also mentioned in "network security with >> OpenSSL" from O'Reilly one has to provide callback functions for using >> OpenSSL with threads. > > The callbacks abstract the thread locking/mutex requ

Re: openssl, threads and portable libraries

2006-07-25 Thread Darryl Miles
Friedrich Dominicus wrote: According to threads(3) and also mentioned in "network security with OpenSSL" from O'Reilly one has to provide callback functions for using OpenSSL with threads. The callbacks abstract the thread locking/mutex requirements inside OpenSSL library to manipulate its g

openssl, threads and portable libraries

2006-07-25 Thread Friedrich Dominicus
I'm trying to get into openssl programming and run into the following "problem". I've found nothing about that neither while searching the web nore looking into this lib. According to threads(3) and also mentioned in "network security with OpenSSL" from O'Reilly one has to provide callback functi