]> 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)
committerHoward Chu <hyc@openldap.org>
Fri, 30 Sep 2011 10:16:57 +0000 (03:16 -0700)
commit8e9af53fb608f63e4d1e44fa08d9ea25525dc99d
tree574e422beac8f93c590e0a5093925638d8c65e1c
parentda210f40e1c0c7761cb392c0772357bbc4a96cb8
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