[FFmpeg-devel] [PATCH] lavf/tls_openssl: Support building with LibreSSL

2017-01-27 Thread Marek Behún
In configure, check if the function BIO_meth_new is defined in the corresponding OpenSSL/LibreSSL library, and if yes, define HAVE_OPENSSL_BIO_METH_CALLS variable to 1 in config.h, or to 0 otherwise. Change the heuristics preprocessor check #if OPENSSL_VERSION_NUMBER >= 0x101fL to #if HAVE

[FFmpeg-devel] [PATCH] lavf/tls_openssl: Support building with LibreSSL

2017-01-27 Thread Marek Behún
Use the LIBRESSL_VERSION_NUMBER macro to determine if building with LibreSSL instead of OpenSSL. This is pretty straightforward, since it is enough to add this check to existing #if macros. Signed-off-by: Marek Behun --- libavformat/tls_openssl.c | 12 ++-- 1 file changed, 6 insertions(+