dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

3 Commits

Author SHA1 Message Date
mvanbaak e8c95985ba pthread_self returns a pthread_t which is not an unsigned int on all
pthread implementations. Casting it to an unsigned int fixes compiler warnings.

Tested on OpenBSD and Linux both 32 and 64 bit


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@205532 f38db490-d61c-443f-a65b-d21fe96a405b
2009-07-09 08:31:24 +00:00
russell bd24ce971c Use tabs instead of spaces for indentation.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@205151 f38db490-d61c-443f-a65b-d21fe96a405b
2009-07-08 15:56:28 +00:00
russell aa0e8f1b3c Move OpenSSL initialization to a single place, make library usage thread-safe.
While doing some reading about OpenSSL, I noticed a couple of things that
needed to be improved with our usage of OpenSSL.

1) We had initialization of the library done in multiple modules.  This has now
   been moved to a core function that gets executed during Asterisk startup.
   We already link OpenSSL into the core for TCP/TLS functionality, so this
   was the most logical place to do it.

2) OpenSSL is not thread-safe by default.  However, making it thread safe is
   very easy.  We just have to provide a couple of callbacks.  One callback
   returns a thread ID.  The other handles locking.  For more information,
   start with the "Is OpenSSL thread-safe?" question on the FAQ page of
   openssl.org.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@205120 f38db490-d61c-443f-a65b-d21fe96a405b
2009-07-08 15:17:19 +00:00