Commit 8123caac authored by filatov's avatar filatov
Browse files

Stop TC execution if certificate or key was not loaded

parent 883d2abe
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -755,7 +755,10 @@ module LibItsGeoNetworking_Functions {
         */
        function f_initialiseSecuredMode() runs on ItsBaseGeoNetworking {
            if (PICS_GN_SECURITY == true) {
                f_acEnableSecurity();
                if(e_success != f_acEnableSecurity()){
                    log("*** INFO: TEST CASE NOW STOPPING ITSELF! ***");
                    stop;
                }
            }
        } // End of function f_initialiseSecuredMode()
        
@@ -1742,7 +1745,10 @@ module LibItsGeoNetworking_Functions {
            var template (value) ToBeSignedSecuredMessage v_toBeSignedSecuredMessageCertificate;
            
            // Load certificates
            f_loadCertificates(PX_CONFIG_DIRECTORY_FOR_SECURITY);
            if( not f_loadCertificates(PX_CONFIG_DIRECTORY_FOR_SECURITY) ) {
            	return e_error;
            }
    	

            // Initialize vc_location
            f_setGenerationLocation(