]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Merged revisions 205120 via svnmerge from
authorRussell Bryant <russell@russellbryant.com>
Wed, 8 Jul 2009 15:29:10 +0000 (15:29 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 8 Jul 2009 15:29:10 +0000 (15:29 +0000)
commit24467ba927b2285ab69f56b1ecc8a2099c2583c8
treeb6c3f03d0b3bc41a6cf3c372fb93ce59af74eb9c
parentb052967cbdbbb65e3624dfda9d9cc4d394156de1
Merged revisions 205120 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r205120 | russell | 2009-07-08 10:17:19 -0500 (Wed, 08 Jul 2009) | 16 lines

  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: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@205147 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/_private.h
main/Makefile
main/asterisk.c
main/ssl.c [new file with mode: 0644]
res/res_crypto.c
res/res_jabber.c