[strongSwan-dev] [PATCH] Force libtls when libpttls is enabled

Andreas Steffen andreas.steffen at strongswan.org
Sun Sep 1 22:53:33 CEST 2013


Hi Thomas,

the issue was fixed with strongswan-5.1.1dr1.

Regards

Andreas

On 09/01/2013 12:37 PM, Thomas De Schampheleire wrote:
> On Sat, Aug 17, 2013 at 9:31 PM, Thomas De Schampheleire
> <patrickdepinguin at gmail.com> wrote:
>> The libpttls library expects libtls.la to be present:
>> libpttls_la_LIBADD = $(top_builddir)/src/libtls/libtls.la
>> but there is no expressed dependency between them. Therefore, it is possible to
>> create a configuration where libpttls is enabled and libtls is not, causing a
>> build failure:
>>
>> make[4]: *** No rule to make target `../../src/libtls/libtls.la', needed by `libpttls.la'.  Stop.
>>
>> libpttls is enabled through USE_PTTLS, set when tnc_tnccs == true.
>>   tnc_tnccs is true when any of tnc-imc, tnc_imv, tnccs_11, tnccs_dynamic or eap_tnc is true.
>>
>> libtls is enabled through USE_TLS, set when tls == true.
>>   tls is true when any of eap_tls, eap_ttls or eap_peap is true.
>>
>> This patch forces tls to true, when tnc_tnccs is true, so that the required libtls.la dependency
>> is built before it is used by libpttls.
>>
>> Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire at gmail.com>
>>
>> ---
>>  configure.ac |  8 ++++----
>>  1 files changed, 4 insertions(+), 4 deletions(-)
>>
>> diff --git a/configure.ac b/configure.ac
>> --- a/configure.ac
>> +++ b/configure.ac
>> @@ -327,10 +327,6 @@ if test x$eap_sim = xtrue; then
>>         simaka=true;
>>  fi
>>
>> -if test x$eap_tls = xtrue -o x$eap_ttls = xtrue -o x$eap_peap = xtrue; then
>> -       tls=true;
>> -fi
>> -
>>  if test x$eap_radius = xtrue -o x$radattr = xtrue -o x$tnc_pdp = xtrue; then
>>         radius=true;
>>  fi
>> @@ -339,6 +335,10 @@ if test x$tnc_imc = xtrue -o x$tnc_imv =
>>         tnc_tnccs=true;
>>  fi
>>
>> +if test x$eap_tls = xtrue -o x$eap_ttls = xtrue -o x$eap_peap = xtrue -o x$tnc_tnccs = xtrue; then
>> +       tls=true;
>> +fi
>> +
>>  if test x$imc_test = xtrue -o x$imv_test = xtrue -o x$imc_scanner = xtrue -o x$imv_scanner = xtrue -o x$imc_os = xtrue -o x$imv_os = xtrue -o x$imc_attestation = xtrue -o x$imv_attestation = xtrue; then
>>         imcv=true;
>>  fi
> 
======================================================================
Andreas Steffen                         andreas.steffen at strongswan.org
strongSwan - the Open Source VPN Solution!          www.strongswan.org
Institute for Internet Technologies and Applications
University of Applied Sciences Rapperswil
CH-8640 Rapperswil (Switzerland)
===========================================================[ITA-HSR]==

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4468 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.strongswan.org/pipermail/dev/attachments/20130901/711d2104/attachment.bin>


More information about the Dev mailing list