Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ITS - Intelligent Transport Systems
ITS
Commits
9f9491fb
Commit
9f9491fb
authored
Dec 12, 2016
by
filatov
Browse files
Use names instead of HashID for IUT certificate definition in SSP tests ( Fix #0007563 )
parent
3026cfcc
Changes
2
Hide whitespace changes
Inline
Side-by-side
ttcn/AtsCAM/ItsCam_TpFunctions.ttcn
View file @
9f9491fb
...
...
@@ -34,7 +34,8 @@ module ItsCam_TpFunctions {
import
from
LibItsCam_TypesAndValues
all
;
import
from
LibItsCam_Pics
all
;
import
from
LibItsCam_Pixits
all
;
import
from
LibItsSecurity_Functions
all
;
// 5.2.1
group
camMessageDissemination
{
...
...
@@ -2997,13 +2998,14 @@ module ItsCam_TpFunctions {
group
camGenerationSSP
{
function
f_CAM_MSD_SSP_BO_XX
(
in
Oct8
p_certHashedId8
,
in
charstring
p_certName
,
in
template
(
value
)
UtCamTrigger
p_utEvent
,
in
template
(
present
)
CAM
pmw_CamMsg
,
in
template
(
present
)
Bit256
pmw_ssp
:=
?
)
runs
on
ItsCam
{
// Local variables
var
Oct8
v_certHashedId8
;
// Test control
if
(
not
PICS_CAM_GENERATION
)
{
...
...
@@ -3025,10 +3027,19 @@ module ItsCam_TpFunctions {
// Preamble
// initialize IUT with given certificate
fx_readCertificateDigest
(
p_certName
,
v_certHashedId8
);
if
(
'0000000000000000'O
==
v_certHashedId8
)
{
// Certificate not found
log
(
"*** "
&
testcasename
()
&
": Required IUT certificate is not found on the test system ***"
);
setverdict
(
inconc
);
stop
;
}
f_prInitialState
(
e_staticPosition
,
true
,
{
hashedId8
:=
p
_certHashedId8
}
{
hashedId8
:=
v
_certHashedId8
}
);
f_selfOrClientSyncAndVerdictPreamble
(
c_prDone
,
e_success
);
...
...
@@ -3075,7 +3086,7 @@ module ItsCam_TpFunctions {
testcase
.
stop
(
testcasename
()
&
": PICS_SPECIALVEHICLECONTAINER and PICS_PUBLICTRANS need to be set to true"
);
}
f_CAM_MSD_SSP_BO_XX
(
PX_CERT_IUT_CAM_02
,
m_setVehicleRole
(
c_vehicleRole_publicTransport
),
mw_camMsg_SVC
(
mw_publicTransport_any
)
...
...
ttcn/AtsDENM/ItsDenm_TpFunctions.ttcn
View file @
9f9491fb
...
...
@@ -30,6 +30,8 @@ module ItsDenm_TpFunctions {
import
from
LibItsDenm_TypesAndValues
all
;
import
from
LibItsDenm_Pics
all
;
import
from
LibItsDenm_Pixits
all
;
import
from
LibItsSecurity_Functions
all
;
// 5.2.1
group
denMessageTransmission
{
...
...
@@ -2303,13 +2305,14 @@ module ItsDenm_TpFunctions {
group
denMessageSSP
{
function
f_DEN_SSP_BV_XX
(
in
Oct8
p_certHashedId8
,
function
f_DEN_SSP_BV_XX
(
in
charstring
p_certName
,
in
template
(
value
)
SituationContainer
p_situation
,
in
template
(
present
)
Bit256
pmw_ssp
)
runs
on
ItsDenm
{
var
ActionID
v_actionId
;
var
DenmInd
v_denmInd
;
var
Oct8
v_certHashedId8
;
// Test control
if
(
not
PICS_IS_IUT_SECURED
)
{
...
...
@@ -2330,9 +2333,17 @@ module ItsDenm_TpFunctions {
// Test adapter configuration
// Preamble
fx_readCertificateDigest
(
p_certName
,
v_certHashedId8
);
if
(
'0000000000000000'O
==
v_certHashedId8
)
{
// Certificate not found
log
(
"*** "
&
testcasename
()
&
": Required IUT certificate is not found on the test system ***"
);
setverdict
(
inconc
);
stop
;
}
f_prInitialState
(
e_staticPosition
,
{
hashedId8
:=
p
_certHashedId8
}
{
hashedId8
:=
v
_certHashedId8
}
);
f_selfOrClientSyncAndVerdictPreamble
(
c_prDone
,
e_success
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment