# HG changeset patch # User Michael Schloh von Bennewitz # Date 1332448422 -3600 # Node ID e4385d1fd937c7d4202b058c615019e88e307834 # Parent b1bf69b8f57329f35dbb24bba4fa518b98d1f2c6 Correct nasty intermediate cert open flaw and make requirements consistent. diff -r b1bf69b8f573 -r e4385d1fd937 asterisk/asterisk.spec --- a/asterisk/asterisk.spec Thu Mar 22 21:31:17 2012 +0100 +++ b/asterisk/asterisk.spec Thu Mar 22 21:33:42 2012 +0100 @@ -51,7 +51,7 @@ Group: VoIP License: GPL Version: %{V_opkg} -Release: 20120316 +Release: 20120320 # package options %option with_dahdi no @@ -113,8 +113,8 @@ # build information Prefix: %{l_prefix} BuildRoot: %{l_buildroot} -BuildPreReq: OpenPKG, openpkg >= 20040130, bison, gcc, make, grep, pkgconfig -PreReq: OpenPKG, openpkg >= 20040130, MTA +BuildPreReq: OpenPKG, openpkg >= 20060823, bison, gcc, make, grep, pkgconfig +PreReq: OpenPKG, openpkg >= 20060823, MTA BuildPreReq: zlib, curl, openssl, ncurses, speex, sox, popt, gmime, libxml PreReq: zlib, curl, openssl, ncurses, speex, sox, popt, gmime, libxml %if "%{with_ogg}" == "yes" @@ -362,6 +362,9 @@ -e 's;\${CONFIG_DIR};$(DESTDIR)$(CONFIG_DIR);g' \ -e 's;^\(USE_OWN_LIBCAPI\)=yes;\1=no;' \ chan_capi-%{V_chan_capi}/Makefile + %{l_shtool} subst \ + -e 's;if.*SSL_CTX_use_certificate_file.*;if (SSL_CTX_use_certificate_chain_file(cfg->ssl_ctx, cfg->certfile) == 0) {;' \ + main/tcptls.c %build # sanity check operating system