]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Check for OpenSSL defines before trying to use them. 05/2205/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:19:35 +0000 (09:19 -0400)
commit59ccc89054dd3f8e535f2c183a68955c87af0e10
treee59a15895b422a87bfcd6b586290aa4364199b29
parentbffd954a635ce777f257b55a1060adf31be08511
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