Skip to content

Commit

Permalink
bsock: write a log message when tls is not configured
Browse files Browse the repository at this point in the history
- when ParameterizeAndInitTlsConnection is called but in the regarding
  TLS resource TLS is not enabled then a log message will be triggered
  • Loading branch information
franku committed Jan 28, 2019
1 parent 3db85fb commit 7971670
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/lib/bsock.cc
Expand Up @@ -527,6 +527,8 @@ bool BareosSocket::ParameterizeAndInitTlsConnection(TlsResource *tls_resource,
const PskCredentials psk_cred(identity, password);
tls_conn_init->SetTlsPskClientContext(psk_cred);
}
} else {
Dmsg2(200, "Tls is not configured %s - %s\n", identity, tls_resource->name());
}

if (!tls_conn_init->init()) {
Expand Down

0 comments on commit 7971670

Please sign in to comment.