Commit 07a0c245 authored by garciay's avatar garciay
Browse files

Remove useless call to f_setGenerationLocation() in f_initialiseComponent()

Remove useless variables in f_acEnableSecurity()
parent e3c89435
Loading
Loading
Loading
Loading
+5 −17
Original line number Diff line number Diff line
@@ -722,11 +722,6 @@ module LibItsGeoNetworking_Functions {
            vc_localSeqNumber := f_getInitialSequenceNumber();
            vc_multipleMessagesCount := f_getMessageCount();
            
            f_setGenerationLocation(
                f_getTsLatitude(),
                f_getTsLongitude()
            );
            
        } // end f_initialiseComponent
        
        /**
@@ -1741,25 +1736,18 @@ module LibItsGeoNetworking_Functions {
        function f_acEnableSecurity() runs on ItsBaseGeoNetworking return FncRetCode {
            
            // Local variables
            var template (value) ToBeSignedSecuredMessage v_toBeSignedSecuredMessageDigest;
            var template (value) ToBeSignedSecuredMessage v_toBeSignedSecuredMessageCertificate;
            
            // Load certificates
            if( not f_loadCertificates(PX_CONFIG_DIRECTORY_FOR_SECURITY) ) {
                return e_error;
            }
            

            // Initialize vc_location
            f_setGenerationLocation(
                f_getTsLatitude(),
                f_getTsLongitude()
            );
            
            // Build the beacon template
            v_toBeSignedSecuredMessageDigest := f_buildSecuredMessagePayloadToBeSigned();
            v_toBeSignedSecuredMessageCertificate := f_buildSecuredMessagePayloadToBeSigned(true);
            
            return f_acTriggerEvent(
                AcGnPrimitive:{ acEnableSecurity := m_enableSecurity(
                    cc_taCert_A