// Set up security services even if secured_mode is set to 0. Later, we can receive an AcEnableSecurity request, the sertificate caching will be ready to go
fill_gbc_packet(latitude,longitude,ll_address,latitude,longitude,distanceA,distanceB,angle);// TODO Check if GeoBroadcastArea lat/lon are identical to lat/lon of the Test System
@@ -808,18 +874,42 @@ int GeoNetworkingLayer::build_geonetworking_pdu(OCTETSTRING& data, Params& param
unsignedlonglongms=std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch()).count()-1072911600000L;// TODO Add method such as its_tme() & its_time_mod()
unsignedlonglongms=std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch()).count()-1072911600000L;// TODO Add method such as its_tme() & its_time_mod()
@@ -840,7 +930,7 @@ int GeoNetworkingLayer::build_geonetworking_pdu(OCTETSTRING& data, Params& param
unsignedlonglongms=std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch()).count()-1072911600000L;// TODO Add method such as its_tme() & its_time_mod()
@@ -43,6 +43,7 @@ class GeoNetworkingLayer : public TLayer<LibItsGeoNetworking__TestSystem::GeoNet
LibItsGeoNetworking__TypesAndValues::GeoNetworkingPdu*_beacon;/*!< Data structure used for beaconing */
LibItsGeoNetworking__TypesAndValues::GeoNetworkingPdu*_gbc_packet;/*!< Data structure used to encapsulate upper layer PDU into a GeoNetworking packet as a Geobroadcast*/
LibItsGeoNetworking__TypesAndValues::GeoNetworkingPdu*_shb_packet;/*!< Data structure used to encapsulate upper layer PDU into a GeoNetworking packet as a SHB */
LibItsGeoNetworking__TypesAndValues::GeoNetworkingPdu*_tsb_packet;/*!< Data structure used to encapsulate upper layer PDU into a GeoNetworking packet as a TSB */
LibItsGeoNetworking__TypesAndValues::GeoNetworkingPdu*_ls_reply;/*!< Data structure used to reply to an incoming LS_REQUEST */
LocationTable_location_table;
LocationTable_pass_beacon_table;
...
...
@@ -82,6 +83,16 @@ class GeoNetworkingLayer : public TLayer<LibItsGeoNetworking__TestSystem::GeoNet
loggers::get_instance().log("security_services::secure_gn_payload: Payload type not set");
// Noting to do
}
unsignedlonglongms=std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch()).count()-1072911600000L;// TODO Add method such as its_tme() & its_time_mod() beacuse it is used also in LibItsCommon_externals