Skip to content

Commit

Permalink
jcr: removed unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
franku committed Aug 16, 2018
1 parent 5bf17d2 commit a09547c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
4 changes: 0 additions & 4 deletions core/src/include/jcr.h
Expand Up @@ -406,10 +406,6 @@ class DLL_IMP_EXP JobControlRecord {
* controlled by another JobControlRecord used for sending
* normal and fatal errors.
*/
std::shared_ptr<TLS_CONTEXT> tls_ctx; /* JOB specific TLS-PSK-Context --
* Certificate are handled via me-Resource
*/

int32_t buf_size; /**< Length of buffer */
CompressionContext compress; /**< Compression ctx */
#ifdef HAVE_WIN32
Expand Down
6 changes: 0 additions & 6 deletions core/src/lib/bsock.cc
Expand Up @@ -389,9 +389,6 @@ bool BareosSocket::DoTlsHandshakeWithClient(TlsBase *selected_local_tls,
{
std::shared_ptr<TLS_CONTEXT> tls_ctx = selected_local_tls->CreateServerContext(
std::make_shared<PskCredentials>(identity, password));
if (jcr) {
jcr->tls_ctx = tls_ctx;
}
alist *verify_list = NULL;
if (selected_local_tls->GetVerifyPeer()) {
verify_list = selected_local_tls->GetVerifyList();
Expand All @@ -411,9 +408,6 @@ bool BareosSocket::DoTlsHandshakeWithServer(TlsBase *selected_local_tls,
{
std::shared_ptr<TLS_CONTEXT> tls_ctx = selected_local_tls->CreateClientContext(
std::make_shared<PskCredentials>(identity, password));
if (jcr) {
jcr->tls_ctx = tls_ctx;
}
if (BnetTlsClient(tls_ctx,
this,
selected_local_tls->GetVerifyPeer(),
Expand Down

0 comments on commit a09547c

Please sign in to comment.