diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2011-10-07 21:01:16 +0200 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2011-11-28 18:03:34 +0100 |
commit | 2b899b50ca92ac5aca92a68cca9c0517da0cf3b6 (patch) | |
tree | 1fee10833457f51a4d5cfb38bbf4616ece69f4eb /src | |
parent | 09f01caf3abfce7a98f0cf2e9dfc52b234c421cd (diff) | |
download | strongswan-2b899b50ca92ac5aca92a68cca9c0517da0cf3b6.tar.bz2 strongswan-2b899b50ca92ac5aca92a68cca9c0517da0cf3b6.tar.xz |
combine two algorithm checks
Diffstat (limited to 'src')
-rw-r--r-- | src/libimcv/plugins/imc_attestation/imc_attestation.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/libimcv/plugins/imc_attestation/imc_attestation.c b/src/libimcv/plugins/imc_attestation/imc_attestation.c index b676eaca5..a263622b4 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; } |