]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Check for OpenSSL defines before trying to use them. 04/2204/1
authorMark Michelson <mmichelson@digium.com>
Thu, 4 Feb 2016 22:17:55 +0000 (16:17 -0600)
committerJoshua Colp <jcolp@digium.com>
Fri, 5 Feb 2016 13:18:40 +0000 (09:18 -0400)
commit6386a9a819ffc1ba0d2724a770559e164e5f049b
tree717a30eb9c799433c805e9ae468f12d75a586741
parentbf004c4584649d080979c4f877a6e9d3e793467c
Check for OpenSSL defines before trying to use them.

The SSL_OP_NO_TLSv1_1 and SSL_OP_NO_TLSv1_2 defines did not exist prior
to OpenSSL version 1.0.1. A recent commit attempts to, by default, set
these options, which can cause problems on systems with older OpenSSL
installations.

This commit adds a configure script check for those defines and will not
attempt to make use of those if they do not exist. We will print a
warning urging the user to upgrade their OpenSSL installation if those
defines are not present.

Change-Id: I6a2eb9a43fd0738b404d8f6f2cf4b5c22d9d752d
configure
configure.ac
include/asterisk/autoconfig.h.in
main/tcptls.c