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
919a3f4268398c424b892ce4b7bc79f88f3baa3f...82720e1582ec32c60abcbb99d5ac0db17a8c93e5
Commits (1)
STF545: Review TPlan
· 82720e15
garciay
authored
Oct 19, 2018
82720e15
Hide whitespace changes
Inline
Side-by-side
ttcn/Pki/LibItsPki_Functions.ttcn
View file @
82720e15
...
...
@@ -481,8 +481,10 @@ module LibItsPki_Functions {
var
boolean
v_ret
;
// 1. Decrypt the data
if
((
p_check_security
==
true
)
and
(
f_decrypt
(
v_private_enc_key
,
p_ieee1609dot2_encrypted_and_signed_data
,
v_ieee1609dot2_signed_data
)
==
false
))
{
return
false
;
if
(
f_decrypt
(
v_private_enc_key
,
p_ieee1609dot2_encrypted_and_signed_data
,
v_ieee1609dot2_signed_data
)
==
false
)
{
if
(
p_check_security
==
true
)
{
return
false
;
}
}
log
(
"v_ieee1609dot2_signed_data= "
,
v_ieee1609dot2_signed_data
);
...
...
@@ -503,8 +505,10 @@ module LibItsPki_Functions {
p_peer_certificate
.
toBeSigned
.
verifyKeyIndicator
.
verificationKey
.
ecdsaNistP256
.
compressed_y_1
,
1
);
}
if
((
v_ret
==
false
)
and
(
p_check_security
==
true
))
{
return
false
;
if
(
v_ret
==
false
)
{
if
(
p_check_security
==
true
)
{
return
false
;
}
}
// 3. Retrun the PKI message
...
...
@@ -513,8 +517,10 @@ module LibItsPki_Functions {
return
false
;
}
if
((
p_check_security
==
true
)
and
(
p_etsi_ts_102941_data
.
version
!=
PkiProtocolVersion
))
{
return
false
;
if
(
p_etsi_ts_102941_data
.
version
!=
PkiProtocolVersion
)
{
if
(
p_check_security
==
true
)
{
return
false
;
}
}
return
true
;
...
...
ttcn/Pki/LibItsPki_Pixits.ttcn
0 → 100644
View file @
82720e15
module
LibItsPki_Pixits
{
}
// End of module LibItsPki_Pixits