Ttf011IntoDevel

Merging TTF011 branch into devel branch

Edited by Yann Garcia

Merge request reports

Loading
+1 −1
Changes for ttcn/Common/LibItsCommon_Functions.ttcn: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -119,7 +119,7 @@ module LibItsCommon_Functions {
           
        /**
         * @desc    Gets the current time since 01/01/1970 in UTC format
         * @return  The current time since 01/01/1970 in UTC format
         * @return  The current time since 01/01/1970 in UTC format in milliseconds
         */
        function f_getCurrentTimeUtc() return UInt64 {
            var UInt64 v_time := 0;
+2 −0
Changes for ttcn/Common/LibItsCommon_TypesAndValues.ttcn: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -203,7 +203,9 @@ module LibItsCommon_TypesAndValues {
        const integer c_its_aid_TLC   := 140;
        const integer c_its_aid_TLS   := 140;
        const integer c_its_aid_GN    := 141;
        const integer c_its_aid_CRL   := 622; // ETSI TS 102 941 Clause 6.4 Generation and distribution of TLM / RCA Link Certificates
        const integer c_its_aid_SCR   := 623; // Secured Certificate Request, https://standards.ieee.org/products-services/regauth/psid/public.html
        const integer c_its_aid_CPOC  := 624; // ETSI TS 102 941 Clause 6.4 Generation and distribution of TLM / RCA Link Certificates
    }
}
with {
+1 −0
Changes for ttcn/Http/LibItsHttp_BinaryMessageBodyTypes.ttcn: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@ module LibItsHttp_BinaryMessageBodyTypes {
  type union BinaryBody {
    // TODO Add here your custom variants
    Ieee1609Dot2Data   ieee1609dot2_data,
    Certificate        ieee1609dot2_certificate,
    octetstring        raw
  } with {
    variant ""
+12 −0
Changes for ttcn/Http/LibItsHttp_BinaryTemplates.ttcn: 12 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -47,4 +47,16 @@ module LibItsHttp_BinaryTemplates {
    ieee1609dot2_data := p_ieee1609dot2_data
  } // End of template mw_binary_body_ieee1609dot2_data
  
  template (value) BinaryBody m_binary_body_ieee1609dot2_certificate(
                                                                     in template (value) CertificateBase p_ieee1609dot2_certificate
  ) := {
    ieee1609dot2_certificate := p_ieee1609dot2_certificate
  } // End of template m_binary_body_ieee1609dot2_certificate

  template (present) BinaryBody mw_binary_body_ieee1609dot2_certificate(
                                                                        template (present) CertificateBase p_ieee1609dot2_certificate := ?
  ) := {
    ieee1609dot2_certificate := p_ieee1609dot2_certificate
  } // End of template mw_binary_body_ieee1609dot2_certificate
  
} // End of module LibItsHttp_BinaryTemplates
+26 −0
Changes for ttcn/Http/LibItsHttp_Functions.ttcn: 26 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -145,6 +145,32 @@ module LibItsHttp_Functions {
        } // End of 'for' statement
      } // End of function f_get_header
      
      /**
      * @desc Check HTTP response headers
      * @param p_headers The HTTP headers
      * @param p_value the expected va;ue
      * @return true on success, false otherwise
      */
      function f_check_headers(
                               in Headers p_headers,
                               in charstring p_header_name := "Location",
                               in template (present) charstring p_value := ?
                               ) return boolean {
        // Local variables
        var boolean v_header_matched := false;
        
        for (var integer v_idx := 0; v_idx < lengthof(p_headers); v_idx := v_idx + 1) {
          if (p_headers[v_idx].header_name == p_header_name) {
            if (match(p_headers[v_idx].header_value[0], p_value) == true) { 
              v_header_matched := true;
            } // else, nothing to do
            break;
          }
        } // End of 'for' statement
        
        return v_header_matched;
      } // End of function f_check_headers

    } // End of group http_headers
    
} // End of module LibItsHttp_Functions 
Loading
Loading