diff options
author | thiagoftsm <49162938+thiagoftsm@users.noreply.github.com> | 2019-06-24 12:21:32 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-24 12:21:32 +0000 |
commit | b27f0c65342cee0463eaf62d7e53112aaa1fdbb0 (patch) | |
tree | ecf13ddb7958ef629a90113e55fde2fc20dce7ef /libnetdata | |
parent | 0f1b26b69aaa9e58556d5715aeff8243954c7347 (diff) |
SSL_better_name change name! (#6336)
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; |