aboutsummaryrefslogtreecommitdiffstats
path: root/src/libimcv/plugins/imv_test/imv_test.c
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2012-09-09 05:13:13 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2012-09-09 05:13:50 +0200
commit6f93927b6c6a0094cb81b7c560baf9b15d339ba5 (patch)
tree5d30fd31f96da80556407dbfc194c6abc6075a40 /src/libimcv/plugins/imv_test/imv_test.c
parentbcf8cdd556d23844e633c09f27e05c2395364c3d (diff)
downloadstrongswan-6f93927b6c6a0094cb81b7c560baf9b15d339ba5.tar.bz2
strongswan-6f93927b6c6a0094cb81b7c560baf9b15d339ba5.tar.xz
introduced sending of standard IETF Assessment Result PA-TNC attribute by IMVs
Diffstat (limited to 'src/libimcv/plugins/imv_test/imv_test.c')
-rw-r--r--src/libimcv/plugins/imv_test/imv_test.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/libimcv/plugins/imv_test/imv_test.c b/src/libimcv/plugins/imv_test/imv_test.c
index 10a206b1c..5ea82e97c 100644
--- a/src/libimcv/plugins/imv_test/imv_test.c
+++ b/src/libimcv/plugins/imv_test/imv_test.c
@@ -209,7 +209,8 @@ static TNC_Result receive_message(TNC_IMVID imv_id,
state->set_recommendation(state,
TNC_IMV_ACTION_RECOMMENDATION_NO_RECOMMENDATION,
TNC_IMV_EVALUATION_RESULT_ERROR);
- return imv_test->provide_recommendation(imv_test, connection_id);
+ return imv_test->provide_recommendation(imv_test, connection_id,
+ src_imc_id);
}
/* request a handshake retry ? */
@@ -233,9 +234,8 @@ static TNC_Result receive_message(TNC_IMVID imv_id,
return result;
}
- return received_command ?
- imv_test->provide_recommendation(imv_test, connection_id) :
- TNC_RESULT_SUCCESS;
+ return received_command ? imv_test->provide_recommendation(imv_test,
+ connection_id, src_imc_id) : TNC_RESULT_SUCCESS;
}
/**
@@ -286,7 +286,8 @@ TNC_Result TNC_IMV_SolicitRecommendation(TNC_IMVID imv_id,
DBG1(DBG_IMV, "IMV \"%s\" has not been initialized", imv_name);
return TNC_RESULT_NOT_INITIALIZED;
}
- return imv_test->provide_recommendation(imv_test, connection_id);
+ return imv_test->provide_recommendation(imv_test, connection_id,
+ TNC_IMCID_ANY);
}
/**