03.11.2016 в 09:24:19 +0100 Bernhard Schmidt написал(а):
> - Asterisk is doing some weird stuff with macros in
>   
> https://sources.debian.net/src/asterisk/1:13.11.2~dfsg-1/main/libasteriskssl.c/
>   that causes the build against 1.1.0 to fail. This is beyond my C
>   knowledge. I will gladly test and accept any patch for that.

I think that

#if defined(HAVE_OPENSSL) && OPENSSL_VERSION_NUMBER >= 0x10100000L
/* No explicit initialization is needed with OpenSSL 1.1.0.
   All the functions called or overridden in this file were removed. */
#undef HAVE_OPENSSL
#endif

should be added after ASTERISK_FILE_VERSION in libasteriskssl.c.


(The fact that the functions were removed also means that asterisk
compiled with OpenSSL 1.0.2 probably won't break when both 1.0.2 and
1.1.0 are loaded. But probably will break if libssl1.0.0 from jessie
is loaded.)

Reply via email to