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.



>>>>> 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

Reply via email to