From 48f51192f17e9a7b1a0de9df8e1e00e23a7afd06 Mon Sep 17 00:00:00 2001 From: balaskoa <Jeno.Balasko@ericsson.com> Date: Tue, 14 Aug 2018 08:34:28 +0200 Subject: [PATCH] Copyright and License update to EPL 2.0 mod1 Signed-off-by: balaskoa <Jeno.Balasko@ericsson.com> --- demo/Makefile | 4 +- src/HTTPmsg_MessageLen_Function.cc | 96 +++++++++++++++--------------- 2 files changed, 49 insertions(+), 51 deletions(-) diff --git a/demo/Makefile b/demo/Makefile index a85067f..f6ac7b3 100644 --- a/demo/Makefile +++ b/demo/Makefile @@ -2,9 +2,7 @@ # of the TTCN-3 Test Executor version 1.7.pre0 build 2 # for Attila Balasko (ethbaat@ehubuux110) on Mon Jan 15 16:28:23 2007 -# Copyright 2000-2006 Test Competence Center, Ericsson R & D, Hungary -# For trouble reporting use the tool MTTSMS. -# For TR writers guide please visit the web page: http://ttcn.ericsson.se +# Copyright Ericsson Telecom AB 2000-2018 # The following make commands are available: # - make, make all Builds the executable test suite. diff --git a/src/HTTPmsg_MessageLen_Function.cc b/src/HTTPmsg_MessageLen_Function.cc index d11059b..1dd0e53 100644 --- a/src/HTTPmsg_MessageLen_Function.cc +++ b/src/HTTPmsg_MessageLen_Function.cc @@ -1,49 +1,49 @@ -/****************************************************************************** -* Copyright (c) 2000-2018 Ericsson Telecom AB -* All rights reserved. This program and the accompanying materials -* are made available under the terms of the Eclipse Public License v2.0 -* which accompanies this distribution, and is available at -* https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html -* -* Contributors: -* Eduard Czimbalmos - initial implementation and initial documentation -* Istvan Ovary -* Peter Dimitrov -* Balasko Jeno -* Gabor Szalai -******************************************************************************/ -// -// File: HTTPmsg_MessageLen_Function.cc -// Description: HTTP Message length calculator +/****************************************************************************** +* Copyright (c) 2000-2018 Ericsson Telecom AB +* All rights reserved. This program and the accompanying materials +* are made available under the terms of the Eclipse Public License v2.0 +* which accompanies this distribution, and is available at +* https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html +* +* Contributors: +* Eduard Czimbalmos - initial implementation and initial documentation +* Istvan Ovary +* Peter Dimitrov +* Balasko Jeno +* Gabor Szalai +******************************************************************************/ +// +// File: HTTPmsg_MessageLen_Function.cc +// Description: HTTP Message length calculator // Rev: R9B -// Prodnr: CNL 113 469 - -#include "HTTPmsg_PT.hh" -#include "HTTPmsg_Types.hh" -#include "HTTPmsg_MessageLen.hh" - -using namespace HTTPmsg__Types; -using namespace HTTPmsg__PortType; - -namespace HTTPmsg__MessageLen { -INTEGER f__HTTPMessage__len(OCTETSTRING const& stream) { - HTTPMessage msg; - TTCN_Buffer *buf_p = new TTCN_Buffer() ; - buf_p->put_os(stream); - - int buf_len = buf_p->get_read_len(); - if( buf_len > 0) - { - if(f_HTTP_decodeCommon(buf_p, msg, true, false, NULL, NULL)) - { - buf_len -= buf_p->get_read_len(); - } - else - buf_len = -1; - - - } else buf_len = -1; - delete buf_p; - return buf_len; -} -} +// Prodnr: CNL 113 469 + +#include "HTTPmsg_PT.hh" +#include "HTTPmsg_Types.hh" +#include "HTTPmsg_MessageLen.hh" + +using namespace HTTPmsg__Types; +using namespace HTTPmsg__PortType; + +namespace HTTPmsg__MessageLen { +INTEGER f__HTTPMessage__len(OCTETSTRING const& stream) { + HTTPMessage msg; + TTCN_Buffer *buf_p = new TTCN_Buffer() ; + buf_p->put_os(stream); + + int buf_len = buf_p->get_read_len(); + if( buf_len > 0) + { + if(f_HTTP_decodeCommon(buf_p, msg, true, false, NULL, NULL)) + { + buf_len -= buf_p->get_read_len(); + } + else + buf_len = -1; + + + } else buf_len = -1; + delete buf_p; + return buf_len; +} +} -- GitLab