bareos: dev 589d4fae

Author Committer Branch Timestamp Parent
franku franku dev 2018-09-18 20:58 dev 0d30779f Pending
Changeset fixes during testing of tls:

dird: corrected error messages
bnet: corrected swapped resource pointers

bsock: added an extra unique pointer for tls initialization
- added unique_ptr tls_conn_init that is used during tls initialization and handshake
  to hold the pointer to the Tls implementation
- upen successful initialization this pointer will be moved to the shared_ptr tls_conn
- tls_conn is used from the send and receive routines
- BareosSocket::mutex_ is used for thread safeness

fd-commands: ConnectToFileDaemon - reset job status to running
- after an unsuccessful TLS without cleartext handshake the jobstatus
  will be reset to "running"

jcr: moved ConnectionHandshakeMode variables to the general public area
- gefore this change these variables were located in the director
  public area of the class

passive-backup: wait 2 seconds before continuing with the job
passive-verify: wait 2 seconds before continuing with the job

passive-restore: wait 2 seconds before continuing with the job
- after sending the bootstrap file to the sd wait for 2 seconds with response

tls: replaced a wrong variable name
- crlfile_ instead of certfile_
mod - core/src/dird/authenticate.cc Diff File
mod - core/src/dird/backup.cc Diff File
mod - core/src/dird/fd_cmds.cc Diff File
mod - core/src/dird/restore.cc Diff File
mod - core/src/dird/verify.cc Diff File
mod - core/src/include/jcr.h Diff File
mod - core/src/lib/bnet.cc Diff File
mod - core/src/lib/bsock.cc Diff File
mod - core/src/lib/bsock.h Diff File
mod - core/src/lib/bsock_tcp.cc Diff File
mod - core/src/lib/tls_openssl.cc Diff File