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! (#6219)
* 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:
parent
3b72bed2a5
commit
7039044be9
2 changed files with 38 additions and 39 deletions
libnetdata/socket
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue