Lines 26-41
Link Here
|
26 |
|
26 |
|
27 |
#ifdef WITH_TLS |
27 |
#ifdef WITH_TLS |
28 |
# include <openssl/ssl.h> |
28 |
# include <openssl/ssl.h> |
|
|
29 |
# include <openssl/opensslv.h> |
30 |
# if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) |
31 |
# define HAVE_OPENSSL_OPAQUE_STRUCTS |
32 |
# endif |
29 |
#else |
33 |
#else |
30 |
# include <time.h> |
34 |
# include <time.h> |
31 |
#endif |
35 |
#endif |
32 |
#include <stdlib.h> |
36 |
#include <stdlib.h> |
33 |
|
37 |
|
34 |
#if defined(WITH_THREADING) && !defined(WITH_BROKER) |
38 |
#include <pthread.h> |
35 |
# include <pthread.h> |
|
|
36 |
#else |
37 |
# include <dummypthread.h> |
38 |
#endif |
39 |
|
39 |
|
40 |
#ifdef WITH_SRV |
40 |
#ifdef WITH_SRV |
41 |
# include <ares.h> |
41 |
# include <ares.h> |
Lines 194-200
Link Here
|
194 |
#endif |
193 |
#endif |
195 |
bool want_write; |
194 |
bool want_write; |
196 |
bool want_connect; |
195 |
bool want_connect; |
197 |
#if defined(WITH_THREADING) && !defined(WITH_BROKER) |
196 |
|
198 |
pthread_mutex_t callback_mutex; |
197 |
pthread_mutex_t callback_mutex; |
199 |
pthread_mutex_t log_callback_mutex; |
198 |
pthread_mutex_t log_callback_mutex; |
200 |
pthread_mutex_t msgtime_mutex; |
199 |
pthread_mutex_t msgtime_mutex; |
Lines 205-211
Link Here
|
205 |
pthread_mutex_t out_message_mutex; |
204 |
pthread_mutex_t out_message_mutex; |
206 |
pthread_mutex_t mid_mutex; |
205 |
pthread_mutex_t mid_mutex; |
207 |
pthread_t thread_id; |
206 |
pthread_t thread_id; |
208 |
#endif |
207 |
|
209 |
bool clean_session; |
208 |
bool clean_session; |
210 |
#ifdef WITH_BROKER |
209 |
#ifdef WITH_BROKER |
211 |
char *old_id; /* for when a duplicate client connects, but we still want to |
210 |
char *old_id; /* for when a duplicate client connects, but we still want to |