aboutsummaryrefslogtreecommitdiffstats
path: root/utils/src
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2019-02-12 00:07:11 +0100
committerMauro Sardara <msardara@cisco.com>2019-02-12 16:17:06 +0000
commit45ae2768f2842cc55f153a71fa66b1d3e25e9ab7 (patch)
tree64c37894239daf920cd50d886e918271106d14b8 /utils/src
parentfbd4dd9c5eba6f8f10bcc0db30a72ea3378c149b (diff)
[HICN-52] Fix signature computation and verification in libtransport
Change-Id: I9b30a9c9e95e2cb2f135fe7efd43e633235196d9 Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'utils/src')
-rw-r--r--utils/src/ping_server.cc4
1 files changed, 1 insertions, 3 deletions
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();
}