Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TTCN-3 Libraries
LibIts
Commits
cac3070f
Commit
cac3070f
authored
Oct 02, 2014
by
garciay
Browse files
Bug fixed in altstep a_securedMessageWithDigest
parent
ea02f55c
Changes
1
Hide whitespace changes
Inline
Side-by-side
ttcn/GeoNetworking/LibItsGeoNetworking_Functions.ttcn
View file @
cac3070f
...
...
@@ -2331,9 +2331,11 @@ module LibItsGeoNetworking_Functions {
* @return Unix-Epoch-Time mod 2^32
*/
external
function
fx_computeGnTimestamp
()
return
UInt32
;
}
}
// End of group externalFunctions
group
security
{
/**
* @desc Waiting for the GN message with Security
* @param p_InSecMsg SecurityMessage template
...
...
@@ -2365,39 +2367,47 @@ module LibItsGeoNetworking_Functions {
mw_securedMessage
(
superset
(
mw_header_field_signer_info_certificate
)),
p_received
)
{
//Nothing to do
//
Nothing to do
}
}
// End of altstep a_securedMessageWithCertificate
/**
* @desc Receive GN message with security containing certificate chain as a signer info
* @param p_cert returns the certificate used for sign received message
*/
altstep
a_securedMessageWithCertificateChain
(
out
SecuredMessage
p_received
altstep
a_securedMessageWithCertificateChain
(
out
SecuredMessage
p_received
)
runs
on
ItsGeoNetworking
{
var
SecuredMessage
v_secMsg
;
[]
a_securedMessage
(
mw_securedMessage
(
superset
(
mw_header_field_signer_info_certificate_chain
)),
[]
a_securedMessage
(
mw_securedMessage
(
superset
(
mw_header_field_signer_info_certificate_chain
)),
p_received
)
{}
}
)
{
// Nothing to do
}
}
// End of altstep a_securedMessageWithCertificateChain
/**
* @desc Receive GN message with security containing digest as a signer info
* @param p_cert returns the certificate used for sign received message
*/
altstep
a_securedMessageWithDigest
(
out
SecuredMessage
p_received
altstep
a_securedMessageWithDigest
(
out
SecuredMessage
p_received
)
runs
on
ItsGeoNetworking
{
[]
a_securedMessage
(
mw_securedMessage
(
superset
(
mw_header_field_signer_info_certificate
)),
[]
a_securedMessage
(
mw_securedMessage
(
superset
(
mw_header_field_signer_info_digest
)),
p_received
)
{}
}
}
// End of group altSteps
)
{
// Nothing to do
}
}
// End of altstep a_securedMessageWithDigest
}
// End of group altSteps
group
waitingHelpers
{
...
...
@@ -2405,22 +2415,24 @@ module LibItsGeoNetworking_Functions {
* @desc Wait for GN message with security containing certificate as a signer info
* @return the certificate used for sign received message
*/
function
f_waitForCertificate
(
out
Certificate
p_cert
)
runs
on
ItsGeoNetworking
function
f_waitForCertificate
(
out
Certificate
p_cert
)
runs
on
ItsGeoNetworking
return
boolean
{
var
SecuredMessage
v_recv
;
var
boolean
v_ret
:=
false
;
alt
{
[]
a_securedMessageWithCertificate
(
v_recv
){
[]
a_securedMessageWithCertificate
(
v_recv
)
{
var
SignerInfo
v_si
;
if
(
f_getMsgSignerInfo
(
v_recv
,
v_si
))
{
if
(
f_getMsgSignerInfo
(
v_recv
,
v_si
)
==
true
)
{
p_cert
:=
v_si
.
signerInfo
.
certificate
;
v_ret
:=
true
;
}
}
}
return
v_ret
;
}
}
// End of function f_waitForCertificate
/**
* @desc Wait for GN message with security containing certificate chain as a signer info
...
...
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