From db1afad8749fce983636456c16c9df9c24d73af4 Mon Sep 17 00:00:00 2001 From: Alberto Compagno Date: Thu, 7 Feb 2019 13:12:19 +0100 Subject: [HICN-39] Added api that return a pointer to the signature hold in a packet [HICN-40] Fixed signature calculation by allocating a contiguous portion of memory that holds the entire hICN header (IP+TCP+AH) Change-Id: I9d40bab0e3ecb82949b8b3a00e2cc1214457e4e3 Signed-off-by: Alberto Compagno --- libtransport/src/hicn/transport/http/server_acceptor.cc | 2 +- libtransport/src/hicn/transport/http/server_acceptor.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'libtransport/src/hicn/transport/http') diff --git a/libtransport/src/hicn/transport/http/server_acceptor.cc b/libtransport/src/hicn/transport/http/server_acceptor.cc index 717dfb642..615fa80d8 100644 --- a/libtransport/src/hicn/transport/http/server_acceptor.cc +++ b/libtransport/src/hicn/transport/http/server_acceptor.cc @@ -83,7 +83,7 @@ void HTTPServerAcceptor::listen(bool async) { } void HTTPServerAcceptor::processIncomingInterest(ProducerSocket &p, - const Interest &interest) { + Interest &interest) { // Temporary solution. With utils::Array payload = interest.getPayload(); diff --git a/libtransport/src/hicn/transport/http/server_acceptor.h b/libtransport/src/hicn/transport/http/server_acceptor.h index 549962414..99480028a 100644 --- a/libtransport/src/hicn/transport/http/server_acceptor.h +++ b/libtransport/src/hicn/transport/http/server_acceptor.h @@ -48,7 +48,7 @@ class HTTPServerAcceptor { // HTTPResponse&& response(); private: - void processIncomingInterest(ProducerSocket &p, const Interest &interest); + void processIncomingInterest(ProducerSocket &p, Interest &interest); OnHttpRequest callback_; asio::io_service io_service_; -- cgit 1.2.3-korg