]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Check for OpenSSL defines before trying to use them. 03/2203/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:15:47 +0000 (09:15 -0400)
commitf9068438188712e50899d6e7b90664791315f8a0
treed706b2eb60dd1b02af194555125526dd0b6a0e3e
parent4bda2fb3acbd14bee15b2acfb5f45304461f5f9d
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