Skip to content
GitLab
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
TTCN-3 Libraries
LibIts
Compare revisions
b745c0b23fc463ff118fc60c06831711651b77ec...b1e9bdd7e3007035abfa808cf21ea00c772aa127
Commits (1)
Rename variables & parameters
· b1e9bdd7
Yann Garcia
authored
Dec 20, 2018
b1e9bdd7
Expand all
Show whitespace changes
Inline
Side-by-side
ttcn/CAM/LibItsCam_Functions.ttcn
View file @
b1e9bdd7
...
...
@@ -136,12 +136,12 @@ module LibItsCam_Functions {
* @desc Initialise secure mode if required
*/
function
f_initialiseSecuredMode
(
in
charstring
p_certificate
I
d
:=
PX_CERT_FOR_TS
in
charstring
p_certificate
_i
d
:=
PX_CERT_FOR_TS
)
runs
on
ItsCam
{
if
(
PICS_IS_IUT_SECURED
==
true
)
{
if
(
e_success
!=
f_acTriggerSecEvent
(
m_acEnableSecurity
(
p_certificate
I
d
)))
{
if
(
e_success
!=
f_acTriggerSecEvent
(
m_acEnableSecurity
(
p_certificate
_i
d
)))
{
log
(
"*** INFO: TEST CASE NOW STOPPING ITSELF! ***"
);
stop
;
}
...
...
@@ -293,10 +293,10 @@ module LibItsCam_Functions {
/**
* @desc Setups default configuration
* @param p_certificate
I
d The certificate identifier the TA shall use in case of secured IUT
* @param p_certificate
_i
d The certificate identifier the TA shall use in case of secured IUT
*/
function
f_cfUp
(
in
charstring
p_certificate
I
d
:=
PX_CERT_FOR_TS
in
charstring
p_certificate
_i
d
:=
PX_CERT_FOR_TS
)
runs
on
ItsCam
/* TITAN TODO: system ItsCamSystem */
{
map
(
self
:
utPort
,
system
:
utPort
);
...
...
@@ -305,7 +305,7 @@ module LibItsCam_Functions {
f_connect4SelfOrClientSync
();
// Initialise secured mode
f_initialiseSecuredMode
(
p_certificate
I
d
);
f_initialiseSecuredMode
(
p_certificate
_i
d
);
}
// End of function f_cfUp
...
...
ttcn/Common/LibItsCommon_Templates.ttcn
View file @
b1e9bdd7
...
...
@@ -26,11 +26,11 @@ module LibItsCommon_Templates {
* @desc Enable security support
*/
template
(
value
)
AcSecPrimitive
m_acEnableSecurity
(
in
charstring
p_certificate
I
d
,
in
charstring
p_certificate
_i
d
,
in
boolean
p_enforceSecurity
:=
false
)
:=
{
acEnableSecurity
:=
{
certificateId
:=
p_certificate
I
d
,
certificateId
:=
p_certificate
_i
d
,
enforceSecurity
:=
p_enforceSecurity
}
}
// End of template m_acEnableSecurity
...
...
ttcn/DENM/LibItsDenm_Functions.ttcn
View file @
b1e9bdd7
...
...
@@ -237,12 +237,12 @@ module LibItsDenm_Functions {
* @desc Initialise secure mode if required
*/
function
f_initialiseSecuredMode
(
in
charstring
p_certificate
I
d
:=
PX_CERT_FOR_TS
in
charstring
p_certificate
_i
d
:=
PX_CERT_FOR_TS
)
runs
on
ItsDenm
{
if
(
PICS_IS_IUT_SECURED
==
true
)
{
if
(
e_success
!=
f_acTriggerSecEvent
(
m_acEnableSecurity
(
p_certificate
I
d
)))
{
if
(
e_success
!=
f_acTriggerSecEvent
(
m_acEnableSecurity
(
p_certificate
_i
d
)))
{
log
(
"*** INFO: TEST CASE NOW STOPPING ITSELF! ***"
);
stop
;
}
...
...
@@ -382,10 +382,10 @@ module LibItsDenm_Functions {
/**
* @desc Setups default configuration
* @param p_certificate
I
d The certificate identifier the TA shall use in case of secured IUT
* @param p_certificate
_i
d The certificate identifier the TA shall use in case of secured IUT
*/
function
f_cfUp
(
in
charstring
p_certificate
I
d
:=
PX_CERT_FOR_TS
in
charstring
p_certificate
_i
d
:=
PX_CERT_FOR_TS
)
runs
on
ItsDenm
/* TITAN TODO: system ItsDenmSystem */
{
map
(
self
:
acPort
,
system
:
acPort
);
...
...
@@ -394,7 +394,7 @@ module LibItsDenm_Functions {
f_connect4SelfOrClientSync
();
// Initialise secured mode
f_initialiseSecuredMode
(
p_certificate
I
d
);
f_initialiseSecuredMode
(
p_certificate
_i
d
);
}
// End of function f_cfUp
...
...
ttcn/Http/LibItsHttp_Functions.ttcn
View file @
b1e9bdd7
...
...
@@ -14,10 +14,10 @@ module LibItsHttp_Functions {
/**
* @desc Setups default configuration
* @param p_certificate
I
d The certificate identifier the TA shall use in case of secured IUT
* @param p_certificate
_i
d The certificate identifier the TA shall use in case of secured IUT
*/
function
f_cfUp
(
in
charstring
p_certificate
I
d
in
charstring
p_certificate
_i
d
)
runs
on
HttpComponent
/* TITAN TODO: system HttpTestAdapter */
{
map
(
self
:
httpPort
,
system
:
httpPort
);
...
...
ttcn/IVIM/LibItsIvim_Functions.ttcn
View file @
b1e9bdd7
...
...
@@ -187,12 +187,12 @@ module LibItsIvim_Functions {
* @desc Initialise secure mode if required
*/
function
f_initialiseSecuredMode
(
in
charstring
p_certificate
I
d
:=
PX_CERT_FOR_TS
in
charstring
p_certificate
_i
d
:=
PX_CERT_FOR_TS
)
runs
on
ItsIvim
{
if
(
PICS_IS_IUT_SECURED
==
true
)
{
if
(
e_success
!=
f_acTriggerSecEvent
(
m_acEnableSecurity
(
p_certificate
I
d
)))
{
if
(
e_success
!=
f_acTriggerSecEvent
(
m_acEnableSecurity
(
p_certificate
_i
d
)))
{
log
(
"*** INFO: TEST CASE NOW STOPPING ITSELF! ***"
);
stop
;
}
...
...
@@ -242,10 +242,10 @@ module LibItsIvim_Functions {
/**
* @desc Setups default configuration
* @param p_certificate
I
d The certificate identifier the TA shall use in case of secured IUT
* @param p_certificate
_i
d The certificate identifier the TA shall use in case of secured IUT
*/
function
f_cfUp
(
in
charstring
p_certificate
I
d
:=
PX_CERT_FOR_TS
in
charstring
p_certificate
_i
d
:=
PX_CERT_FOR_TS
)
runs
on
ItsIvim
/* TITAN TODO: system ItsIvimSystem */
{
map
(
self
:
acPort
,
system
:
acPort
);
...
...
@@ -254,7 +254,7 @@ module LibItsIvim_Functions {
f_connect4SelfOrClientSync
();
// Initialise secured mode
f_initialiseSecuredMode
(
p_certificate
I
d
);
f_initialiseSecuredMode
(
p_certificate
_i
d
);
}
// End of function f_cfUp
...
...
ttcn/MapemSpatem/LibItsMapemSpatem_Functions.ttcn
View file @
b1e9bdd7
...
...
@@ -97,12 +97,12 @@ module LibItsMapemSpatem_Functions {
* @desc Initialise secure mode if required
*/
function
f_initialiseSecuredMode
(
in
charstring
p_certificate
I
d
:=
PX_CERT_FOR_TS
in
charstring
p_certificate
_i
d
:=
PX_CERT_FOR_TS
)
runs
on
ItsMapemSpatem
{
if
(
PICS_IS_IUT_SECURED
==
true
)
{
if
(
e_success
!=
f_acTriggerSecEvent
(
m_acEnableSecurity
(
p_certificate
I
d
)))
{
if
(
e_success
!=
f_acTriggerSecEvent
(
m_acEnableSecurity
(
p_certificate
_i
d
)))
{
log
(
"*** INFO: TEST CASE NOW STOPPING ITSELF! ***"
);
stop
;
}
...
...
@@ -220,10 +220,10 @@ module LibItsMapemSpatem_Functions {
/**
* @desc Setups default configuration
* @param p_certificate
I
d The certificate identifier the TA shall use in case of secured IUT
* @param p_certificate
_i
d The certificate identifier the TA shall use in case of secured IUT
*/
function
f_cfUp
(
in
charstring
p_certificate
I
d
:=
PX_CERT_FOR_TS
in
charstring
p_certificate
_i
d
:=
PX_CERT_FOR_TS
)
runs
on
ItsMapemSpatem
/* TITAN TODO: system ItsMapemSpatemSystem */
{
map
(
self
:
acPort
,
system
:
acPort
);
...
...
@@ -235,7 +235,7 @@ module LibItsMapemSpatem_Functions {
activate
(
a_cf01Down
());
// Initialise secured mode
f_initialiseSecuredMode
(
p_certificate
I
d
);
f_initialiseSecuredMode
(
p_certificate
_i
d
);
}
// End of f_cfUp
...
...
ttcn/Pki/LibItsPki_Functions.ttcn
View file @
b1e9bdd7
This diff is collapsed.
Click to expand it.
ttcn/Security/LibItsSecurity_Functions.ttcn
View file @
b1e9bdd7
This diff is collapsed.
Click to expand it.
ttcn/SremSsem/LibItsSremSsem_Functions.ttcn
View file @
b1e9bdd7
...
...
@@ -129,12 +129,12 @@ module LibItsSremSsem_Functions {
* @desc Initialise secure mode if required
*/
function
f_initialiseSecuredMode
(
in
charstring
p_certificate
I
d
:=
PX_CERT_FOR_TS
in
charstring
p_certificate
_i
d
:=
PX_CERT_FOR_TS
)
runs
on
ItsSremSsem
{
if
(
PICS_IS_IUT_SECURED
==
true
)
{
if
(
e_success
!=
f_acTriggerSecEvent
(
m_acEnableSecurity
(
p_certificate
I
d
)))
{
if
(
e_success
!=
f_acTriggerSecEvent
(
m_acEnableSecurity
(
p_certificate
_i
d
)))
{
log
(
"*** INFO: TEST CASE NOW STOPPING ITSELF! ***"
);
stop
;
}
...
...
@@ -252,10 +252,10 @@ module LibItsSremSsem_Functions {
/**
* @desc Setups default configuration
* @param p_certificate
I
d The certificate identifier the TA shall use in case of secured IUT
* @param p_certificate
_i
d The certificate identifier the TA shall use in case of secured IUT
*/
function
f_cfUp
(
in
charstring
p_certificate
I
d
:=
PX_CERT_FOR_TS
in
charstring
p_certificate
_i
d
:=
PX_CERT_FOR_TS
)
runs
on
ItsSremSsem
/* TITAN TODO: system ItsSremSsemSystem */
{
map
(
self
:
acPort
,
system
:
acPort
);
...
...
@@ -267,7 +267,7 @@ module LibItsSremSsem_Functions {
activate
(
a_cf01Down
());
// Initialise secured mode
f_initialiseSecuredMode
(
p_certificate
I
d
);
f_initialiseSecuredMode
(
p_certificate
_i
d
);
//Initialze the IUT
f_prInitialState
();
...
...