File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 44
44
#include <cyassl/ctaocrypt/error-crypt.h>
45
45
#endif
46
46
47
+ #ifdef USE_CYASSL
48
+ static CYASSL_CTX * get_cyassl_ctx (void );
49
+ #endif
50
+
51
+
47
52
int
48
53
http_get (const int sockfd , char * buf ) {
49
54
@@ -120,8 +125,8 @@ http_get(const int sockfd, char *buf) {
120
125
121
126
#ifdef USE_CYASSL
122
127
123
- CYASSL_CTX * cyassl_ctx = NULL ;
124
- pthread_mutex_t cyassl_ctx_mutex = PTHREAD_MUTEX_INITIALIZER ;
128
+ static CYASSL_CTX * cyassl_ctx = NULL ;
129
+ static pthread_mutex_t cyassl_ctx_mutex = PTHREAD_MUTEX_INITIALIZER ;
125
130
126
131
#define LOCK_CYASSL_CTX () do { \
127
132
debug(LOG_DEBUG, "Locking CyaSSL Context"); \
@@ -136,7 +141,7 @@ pthread_mutex_t cyassl_ctx_mutex = PTHREAD_MUTEX_INITIALIZER;
136
141
} while (0)
137
142
138
143
139
- CYASSL_CTX *
144
+ static CYASSL_CTX *
140
145
get_cyassl_ctx (void )
141
146
{
142
147
CYASSL_CTX * ret ;
You can’t perform that action at this time.
0 commit comments