Diff

Differences From Artifact [c565bf20f1]:

To Artifact [391c72843c]:


104
105
106
107
108
109
110
111

112
113
114

115
116
117
118
119
120
121
104
105
106
107
108
109
110

111
112
113

114
115
116
117
118
119
120
121







-
+


-
+








/*
 * Thread-Safe TLS Code
 */

#ifdef TCL_THREADS
#define OPENSSL_THREAD_DEFINES
#include <openssl/opensslconf.h>
#include OPENSSL_HEADER(openssl/opensslconf.h)

#ifdef OPENSSL_THREADS
#include <openssl/crypto.h>
#include OPENSSL_HEADER(openssl/crypto.h)

/*
 * Threaded operation requires locking callbacks
 * Based from /crypto/cryptlib.c of OpenSSL and NSOpenSSL.
 */

static Tcl_Mutex *locks = NULL;