From 45ae2768f2842cc55f153a71fa66b1d3e25e9ab7 Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Tue, 12 Feb 2019 00:07:11 +0100 Subject: [HICN-52] Fix signature computation and verification in libtransport Change-Id: I9b30a9c9e95e2cb2f135fe7efd43e633235196d9 Signed-off-by: Mauro Sardara --- utils/src/ping_server.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'utils') diff --git a/utils/src/ping_server.cc b/utils/src/ping_server.cc index 7d1df2448..e3500a4ba 100644 --- a/utils/src/ping_server.cc +++ b/utils/src/ping_server.cc @@ -108,9 +108,7 @@ class CallbackContainer { content_object->setDstPort(interest.getSrcPort()); content_object->setTTL(ttl_); - if (sign_) { - content_object->setSignatureSize(identity_->getSignatureLength()); - } else { + if (!sign_) { content_object->resetFlags(); } -- cgit 1.2.3-korg