> On Nov 30, 2017, at 11:41 AM, Martin Simmons <mar...@lispworks.com> wrote: > > It looks like LibreSSL defines OPENSSL_VERSION_NUMBER as 0x20000000L, i.e. as > if it was OpenSSL 2.0. Bacula uses this variable to detect OpenSSL >= 1.1, > which causes it to compile the 1.1 code when using LibreSSL, even though > LibreSSL only claims to provide the API from OpenSSL 1.0. > > Bacula probably needs to detect LibreSSL (e.g. look for > LIBRESSL_VERSION_NUMBER) and treat that as OpenSSL 1.0 regardless of > OPENSSL_VERSION_NUMBER.
This seems to fit closely with a patch provided to FreeBSD: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223994 I could file a bug and pass this directly to the Bacula project, and in the meantime, patch the FreeBSD port. Both will take time and I'm preoccupied with conferences just now. -- Dan Langille - BSDCan / PGCon d...@langille.org > > > >>>>>> On Thu, 30 Nov 2017 09:53:33 -0500, Dan Langille said: >> >> Are you using LibreSSL with Bacula 9.0.6? >> >> I ask because of https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223994 >> >> re: >> >> >> --- openssl.lo --- >> Compiling openssl.c >> --- crypto.lo --- >> crypto.c:199:1: error: unknown type name 'DEFINE_STACK_OF' >> DEFINE_STACK_OF(SignerInfo); >> ^ >> crypto.c:200:1: error: unknown type name 'DEFINE_STACK_OF' >> DEFINE_STACK_OF(RecipientInfo); >> ^ >> crypto.c:334:21: error: use of undeclared identifier 'ASN1_STRING_get0_data'; >> did you mean 'ASN1_STRING_data'? >> ext_value_data = ASN1_STRING_get0_data(asn1_ext_val); >> ^~~~~~~~~~~~~~~~~~~~~ >> ASN1_STRING_data >> /usr/local/include/openssl/asn1.h:787:17: note: 'ASN1_STRING_data' declared >> here >> unsigned char * ASN1_STRING_data(ASN1_STRING *x); >> ^ >> crypto.c:334:43: error: cannot initialize a parameter of type 'ASN1_STRING *' >> (aka 'asn1_string_st *') with an lvalue of type 'const ASN1_STRING *' (aka >> 'const asn1_string_st *') >> ext_value_data = ASN1_STRING_get0_data(asn1_ext_val); >> >> >> -- >> Dan Langille - BSDCan / PGCon >> d...@langille.org >> >> >> >> ------------------------------------------------------------------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Bacula-users mailing list >> Bacula-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/bacula-users >> > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users