@@ -288,7 +288,7 @@ static int openssl_tls_conn_shutdown(struct tcp_connection *c)
288
288
LM_DBG ("shutdown successful\n" );
289
289
return 0 ;
290
290
} else if (ret == 0 ) {
291
- #ifndef NO_SSL_GLOBAL_LO
291
+ #ifndef NO_SSL_GLOBAL_LOCK
292
292
lock_release (tls_global_lock );
293
293
#endif
294
294
LM_DBG ("first phase of 2-way handshake completed succesfuly\n" );
@@ -679,7 +679,7 @@ int openssl_tls_async_connect(struct tcp_connection *con, int fd,
679
679
680
680
n = SSL_connect (ssl );
681
681
if (n > 0 ) {
682
- #ifndef NO_SSL_GLOBAL_LOC
682
+ #ifndef NO_SSL_GLOBAL_LOCK
683
683
lock_release (tls_global_lock );
684
684
#endif
685
685
@@ -693,7 +693,7 @@ int openssl_tls_async_connect(struct tcp_connection *con, int fd,
693
693
return 1 ;
694
694
} else if (n == 0 ) {
695
695
err = SSL_get_error (ssl , n );
696
- #ifndef NO_SSL_GLOBAL_LOC
696
+ #ifndef NO_SSL_GLOBAL_LOCK
697
697
lock_release (tls_global_lock );
698
698
#endif
699
699
@@ -833,7 +833,7 @@ int openssl_tls_write(struct tcp_connection *c, int fd, const void *buf,
833
833
834
834
ret = SSL_write (ssl , buf , len );
835
835
if (ret > 0 ) {
836
- #ifndef NO_SSL_GLOBAL_LOC
836
+ #ifndef NO_SSL_GLOBAL_LOCK
837
837
lock_release (tls_global_lock );
838
838
#endif
839
839
@@ -1033,22 +1033,22 @@ static int openssl_read(struct tcp_connection *c, void *buf, size_t len)
1033
1033
1034
1034
ssl = c -> extra_data ;
1035
1035
1036
- #ifndef NO_SSL_GLOBAL_LO
1036
+ #ifndef NO_SSL_GLOBAL_LOCK
1037
1037
lock_get (tls_global_lock );
1038
1038
#endif
1039
1039
1040
1040
ERR_clear_error ();
1041
1041
1042
1042
ret = SSL_read (ssl , buf , len );
1043
1043
if (ret > 0 ) {
1044
- #ifndef NO_SSL_GLOBAL_LOC
1044
+ #ifndef NO_SSL_GLOBAL_LOCK
1045
1045
lock_release (tls_global_lock );
1046
1046
#endif
1047
1047
1048
1048
LM_DBG ("%d bytes read\n" , ret );
1049
1049
return ret ;
1050
1050
} else if (ret == 0 ) {
1051
- #ifndef NO_SSL_GLOBAL_LOC
1051
+ #ifndef NO_SSL_GLOBAL_LOCK
1052
1052
lock_release (tls_global_lock );
1053
1053
#endif
1054
1054
0 commit comments