diff options
Diffstat (limited to 'libnetdata')
-rw-r--r-- | libnetdata/socket/security.c | 8 | ||||
-rw-r--r-- | libnetdata/socket/security.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/libnetdata/socket/security.c b/libnetdata/socket/security.c index b21692b241..6a02e4ef92 100644 --- a/libnetdata/socket/security.c +++ b/libnetdata/socket/security.c @@ -2,7 +2,7 @@ #ifdef ENABLE_HTTPS -SSL_CTX *netdata_cli_ctx=NULL; +SSL_CTX *netdata_client_ctx=NULL; SSL_CTX *netdata_srv_ctx=NULL; const char *security_key=NULL; const char *security_cert=NULL; @@ -127,7 +127,7 @@ void security_start_ssl(int type) { netdata_srv_ctx = security_initialize_openssl_server(); } else { - netdata_cli_ctx = security_initialize_openssl_client(); + netdata_client_ctx = security_initialize_openssl_client(); } } @@ -137,9 +137,9 @@ void security_clean_openssl() { SSL_CTX_free(netdata_srv_ctx); } - if (netdata_cli_ctx) + if (netdata_client_ctx) { - SSL_CTX_free(netdata_cli_ctx); + SSL_CTX_free(netdata_client_ctx); } #if OPENSSL_VERSION_NUMBER < 0x10100000L diff --git a/libnetdata/socket/security.h b/libnetdata/socket/security.h index 83e6eb3882..dc0e910e70 100644 --- a/libnetdata/socket/security.h +++ b/libnetdata/socket/security.h @@ -24,7 +24,7 @@ struct netdata_ssl{ int flags; }; -extern SSL_CTX *netdata_cli_ctx; +extern SSL_CTX *netdata_client_ctx; extern SSL_CTX *netdata_srv_ctx; extern const char *security_key; extern const char *security_cert; |