From: Andreas Steffen Date: Fri, 7 Oct 2011 19:01:16 +0000 (+0200) Subject: combine two algorithm checks X-Git-Tag: 4.6.2~244 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2b899b50ca92ac5aca92a68cca9c0517da0cf3b6;p=thirdparty%2Fstrongswan.git combine two algorithm checks --- diff --git a/src/libimcv/plugins/imc_attestation/imc_attestation.c b/src/libimcv/plugins/imc_attestation/imc_attestation.c index b676eaca57..a263622b4a 100644 --- a/src/libimcv/plugins/imc_attestation/imc_attestation.c +++ b/src/libimcv/plugins/imc_attestation/imc_attestation.c @@ -97,12 +97,8 @@ TNC_Result TNC_IMC_Initialize(TNC_IMCID imc_id, DBG1(DBG_IMC, "IMC \"%s\" has already been initialized", imc_name); return TNC_RESULT_ALREADY_INITIALIZED; } - if (!pts_meas_algo_probe(&supported_algorithms) || - !pts_dh_group_probe(&supported_dh_groups)) - { - return TNC_RESULT_FATAL; - } - if (!pts_probe_dh_groups(&supported_dh_groups)) + if (!pts_meas_probe_algorithms(&supported_algorithms) || + !pts_probe_dh_groups(&supported_dh_groups)) { return TNC_RESULT_FATAL; }