Loading ttcn/GeoNetworking/LibItsGeoNetworking_Functions.ttcn +37 −25 Original line number Original line Diff line number Diff line Loading @@ -2331,9 +2331,11 @@ module LibItsGeoNetworking_Functions { * @return Unix-Epoch-Time mod 2^32 * @return Unix-Epoch-Time mod 2^32 */ */ external function fx_computeGnTimestamp() return UInt32; external function fx_computeGnTimestamp() return UInt32; } } // End of group externalFunctions group security { group security { /** /** * @desc Waiting for the GN message with Security * @desc Waiting for the GN message with Security * @param p_InSecMsg SecurityMessage template * @param p_InSecMsg SecurityMessage template Loading Loading @@ -2367,7 +2369,6 @@ module LibItsGeoNetworking_Functions { ) { ) { // Nothing to do // Nothing to do } } } // End of altstep a_securedMessageWithCertificate } // End of altstep a_securedMessageWithCertificate /** /** Loading @@ -2377,12 +2378,16 @@ module LibItsGeoNetworking_Functions { altstep a_securedMessageWithCertificateChain( altstep a_securedMessageWithCertificateChain( out SecuredMessage p_received out SecuredMessage p_received ) runs on ItsGeoNetworking { ) runs on ItsGeoNetworking { var SecuredMessage v_secMsg; [] a_securedMessage ( [] a_securedMessage ( mw_securedMessage (superset(mw_header_field_signer_info_certificate_chain)), mw_securedMessage( superset( mw_header_field_signer_info_certificate_chain )), p_received p_received ) {} ) { // Nothing to do } } } // End of altstep a_securedMessageWithCertificateChain /** /** * @desc Receive GN message with security containing digest as a signer info * @desc Receive GN message with security containing digest as a signer info Loading @@ -2392,10 +2397,15 @@ module LibItsGeoNetworking_Functions { out SecuredMessage p_received out SecuredMessage p_received ) runs on ItsGeoNetworking { ) runs on ItsGeoNetworking { [] a_securedMessage ( [] a_securedMessage ( mw_securedMessage (superset(mw_header_field_signer_info_certificate)), mw_securedMessage ( superset( mw_header_field_signer_info_digest )), p_received p_received ) {} ) { // Nothing to do } } } // End of altstep a_securedMessageWithDigest } // End of group altSteps } // End of group altSteps Loading @@ -2405,22 +2415,24 @@ module LibItsGeoNetworking_Functions { * @desc Wait for GN message with security containing certificate as a signer info * @desc Wait for GN message with security containing certificate as a signer info * @return the certificate used for sign received message * @return the certificate used for sign received message */ */ function f_waitForCertificate (out Certificate p_cert) function f_waitForCertificate( runs on ItsGeoNetworking out Certificate p_cert ) runs on ItsGeoNetworking return boolean { return boolean { var SecuredMessage v_recv; var SecuredMessage v_recv; var boolean v_ret := false; var boolean v_ret := false; alt { alt { [] a_securedMessageWithCertificate(v_recv) { [] a_securedMessageWithCertificate(v_recv) { var SignerInfo v_si; 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; p_cert := v_si.signerInfo.certificate; v_ret := true; v_ret := true; } } } } } } return v_ret; return v_ret; } } // End of function f_waitForCertificate /** /** * @desc Wait for GN message with security containing certificate chain as a signer info * @desc Wait for GN message with security containing certificate chain as a signer info Loading Loading
ttcn/GeoNetworking/LibItsGeoNetworking_Functions.ttcn +37 −25 Original line number Original line Diff line number Diff line Loading @@ -2331,9 +2331,11 @@ module LibItsGeoNetworking_Functions { * @return Unix-Epoch-Time mod 2^32 * @return Unix-Epoch-Time mod 2^32 */ */ external function fx_computeGnTimestamp() return UInt32; external function fx_computeGnTimestamp() return UInt32; } } // End of group externalFunctions group security { group security { /** /** * @desc Waiting for the GN message with Security * @desc Waiting for the GN message with Security * @param p_InSecMsg SecurityMessage template * @param p_InSecMsg SecurityMessage template Loading Loading @@ -2367,7 +2369,6 @@ module LibItsGeoNetworking_Functions { ) { ) { // Nothing to do // Nothing to do } } } // End of altstep a_securedMessageWithCertificate } // End of altstep a_securedMessageWithCertificate /** /** Loading @@ -2377,12 +2378,16 @@ module LibItsGeoNetworking_Functions { altstep a_securedMessageWithCertificateChain( altstep a_securedMessageWithCertificateChain( out SecuredMessage p_received out SecuredMessage p_received ) runs on ItsGeoNetworking { ) runs on ItsGeoNetworking { var SecuredMessage v_secMsg; [] a_securedMessage ( [] a_securedMessage ( mw_securedMessage (superset(mw_header_field_signer_info_certificate_chain)), mw_securedMessage( superset( mw_header_field_signer_info_certificate_chain )), p_received p_received ) {} ) { // Nothing to do } } } // End of altstep a_securedMessageWithCertificateChain /** /** * @desc Receive GN message with security containing digest as a signer info * @desc Receive GN message with security containing digest as a signer info Loading @@ -2392,10 +2397,15 @@ module LibItsGeoNetworking_Functions { out SecuredMessage p_received out SecuredMessage p_received ) runs on ItsGeoNetworking { ) runs on ItsGeoNetworking { [] a_securedMessage ( [] a_securedMessage ( mw_securedMessage (superset(mw_header_field_signer_info_certificate)), mw_securedMessage ( superset( mw_header_field_signer_info_digest )), p_received p_received ) {} ) { // Nothing to do } } } // End of altstep a_securedMessageWithDigest } // End of group altSteps } // End of group altSteps Loading @@ -2405,22 +2415,24 @@ module LibItsGeoNetworking_Functions { * @desc Wait for GN message with security containing certificate as a signer info * @desc Wait for GN message with security containing certificate as a signer info * @return the certificate used for sign received message * @return the certificate used for sign received message */ */ function f_waitForCertificate (out Certificate p_cert) function f_waitForCertificate( runs on ItsGeoNetworking out Certificate p_cert ) runs on ItsGeoNetworking return boolean { return boolean { var SecuredMessage v_recv; var SecuredMessage v_recv; var boolean v_ret := false; var boolean v_ret := false; alt { alt { [] a_securedMessageWithCertificate(v_recv) { [] a_securedMessageWithCertificate(v_recv) { var SignerInfo v_si; 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; p_cert := v_si.signerInfo.certificate; v_ret := true; v_ret := true; } } } } } } return v_ret; return v_ret; } } // End of function f_waitForCertificate /** /** * @desc Wait for GN message with security containing certificate chain as a signer info * @desc Wait for GN message with security containing certificate chain as a signer info Loading