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 --- lib/src/protocol/ipv6.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/src/protocol/ipv6.c') diff --git a/lib/src/protocol/ipv6.c b/lib/src/protocol/ipv6.c index 41b00ec92..1cdcc75c0 100644 --- a/lib/src/protocol/ipv6.c +++ b/lib/src/protocol/ipv6.c @@ -401,6 +401,13 @@ ipv6_get_key_id (hicn_type_t type, hicn_protocol_t * h, return CHILD_OPS (get_key_id, type, h, key_id, key_id_size); } +int +ipv6_get_signature (hicn_type_t type, hicn_protocol_t * h, + uint8_t ** signature) +{ + return CHILD_OPS (get_signature, type, h, signature); +} + DECLARE_HICN_OPS (ipv6); /* -- cgit 1.2.3-korg