Awesome, thanks! śr., 24 paź 2018 o 08:46 Andrea Venturoli <m...@netfence.it> napisał(a):
> On 10/22/18 5:38 PM, Radosław Korzeniewski wrote: > > _ this environment does not provide OpenSSL (or perhaps configure > > doesn't find it?), so it will be disabled; however some code in > > BSOCKCORE::close() in src/lib/bsockcore.c is not guarded by the > proper > > #ifdef HAVE_TLS, so you'll get linker errors. Just remove this code > (by > > commenting it or putting the right #if or just deleting those lines); > > > > > > What version of Bacula do you compile? > > 9.2.1. > > > > > Could you provide a proper code for which BSOCKCORE::close() which works > for you? > > Sure. > > The following patch is required in order to compile that version of > bacula *WITHOUT* OpenSSL. > > % diff -u src/lib/bsockcore.c.orig src/lib/bsockcore.c > --- src/lib/bsockcore.c.orig 2018-10-24 08:41:49.443835000 +0200 > +++ src/lib/bsockcore.c 2018-10-24 08:42:18.270196000 +0200 > @@ -935,12 +935,14 @@ > bsock->set_closed(); > bsock->set_terminated(); > if (!bsock->m_duped) { > +#ifdef HAVE_TLS > /* Shutdown tls cleanly. */ > if (bsock->tls) { > tls_bsock_shutdown(bsock); > free_tls_connection(bsock->tls); > bsock->tls = NULL; > } > +#endif > > #ifdef HAVE_WIN32 > if (!bsock->is_timed_out()) { > > > While I think this patch is safe, I don't want to be held responsible > for side effects :) I don't know the whole source enough and I didn't > test it with SSL enabled. > > bye > av. > -- Radosław Korzeniewski rados...@korzeniewski.net
_______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users