]> git.sur5r.net Git - openldap/commit
ITS#7034 use mutex for connection handshake when using PEM nss
authorRich Megginson <rmeggins@redhat.com>
Tue, 6 Sep 2011 18:59:26 +0000 (12:59 -0600)
committerQuanah Gibson-Mount <quanah@openldap.org>
Wed, 2 Nov 2011 23:20:23 +0000 (16:20 -0700)
commit056df3a7969e895ecca6b7a552ccf6d4b800c595
tree19c002f022a82494733d7b452d2d0a144d7d1692
parent412ee0ac561fd4c43b058fd1f052b661ed80a1d1
ITS#7034 use mutex for connection handshake when using PEM nss

PEM nss is not thread safe when establishing the initial connection
using SSL_ForceHandshake.  Create a new mutex - tlsm_pem_mutex - to
protect this function call.
The call to SSL_ConfigServerSessionIDCache() is not thread-safe - move it
to the init section and protect it with the init mutex.
libraries/libldap/tls_m.c