0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-27 22:26:21 +00:00

SSL_fix_format Fix wrong format used with SSL! ()

* SSL_fix_format Fix wrong format used with SSL!

* SSL_fix_format Remove unnecessary space!

* SSL_fix_format fixing last requests!

* SSL_fix_format fixing spaces!

* SSL_fix_format killing spaces!
This commit is contained in:
thiagoftsm 2019-06-06 16:58:34 +00:00 committed by GitHub
parent 3b72bed2a5
commit 7039044be9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 39 deletions
libnetdata/socket

View file

@ -119,7 +119,7 @@ static SSL_CTX * security_initialize_openssl_server(){
void security_start_ssl(int type) {
if (!type) {
struct stat statbuf;
if ( (stat(security_key,&statbuf)) || (stat(security_cert,&statbuf)) ){
if (stat(security_key,&statbuf) || stat(security_cert,&statbuf)) {
info("To use encryption it is necessary to set \"ssl certificate\" and \"ssl key\" in [web] !\n");
return;
}
@ -209,8 +209,7 @@ int security_test_certificate(SSL *ssl){
ERR_error_string_n(ERR_get_error(), error, sizeof(error));
error("SSL RFC4158 check: We have a invalid certificate, the tests result with %ld and message %s", status, error);
ret = -1;
}
else {
} else {
ret = 0;
}
return ret;