Commit 07a951cd authored by YannGarcia's avatar YannGarcia
Browse files

Start validation of AtsPki; Add missing AcSecurity primitive implementation in Facilities

parent 3cf4b64d
This diff is collapsed.
...@@ -3178,11 +3178,13 @@ module ItsCam_TpFunctions { ...@@ -3178,11 +3178,13 @@ module ItsCam_TpFunctions {
/** /**
* @desc TP Function for TC_CAM_MSP_SSP_BV_XX * @desc TP Function for TC_CAM_MSP_SSP_BV_XX
* @param p_certName Certificate to be used to sign the CAM message * @param p_certName Certificate to be used to sign the CAM message
* @param p_camMsg CAM value template to be sent to IUT * @param p_camMsg CAM value template to be sent to IUT
* @param p_discarded Set to true if the message shallbe discarded
*/ */
function f_CAM_MSP_SSP_BV_XX( function f_CAM_MSP_SSP_BV_XX(
in charstring p_certName, in charstring p_certName,
in template (value) CAM p_camMsg in template (value) CAM p_camMsg,
in boolean p_discarded := true
) runs on ItsCam { ) runs on ItsCam {
// Local variables // Local variables
...@@ -3222,12 +3224,22 @@ module ItsCam_TpFunctions { ...@@ -3222,12 +3224,22 @@ module ItsCam_TpFunctions {
// empty on purpose // empty on purpose
} }
if(i < lengthof(vc_utEvents)) { if(i < lengthof(vc_utEvents)) {
log("*** " & testcasename() & ": FAIL: CAM was not transmitted to upper layer ***"); if (p_discarded == false) {
f_selfOrClientSyncAndVerdict(c_tbDone, e_error); log("*** " & testcasename() & ": PASS: CAM was transmitted to upper layer ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
} else {
log("*** " & testcasename() & ": FAIL: CAM was not transmitted to upper layer ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
} }
else { else {
log("*** " & testcasename() & ": PASS: CAM was transmitted to upper layer ***"); if (p_discarded) {
f_selfOrClientSyncAndVerdict(c_tbDone, e_success); log("*** " & testcasename() & ": PASS: CAM was not transmitted to upper layer ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
} else {
log("*** " & testcasename() & ": FAIL: CAM was not transmitted to upper layer ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
} }
// Postamble // Postamble
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment