diff options
author | Mauro Sardara <msardara@cisco.com> | 2019-02-12 00:07:11 +0100 |
---|---|---|
committer | Mauro Sardara <msardara@cisco.com> | 2019-02-12 16:17:06 +0000 |
commit | 45ae2768f2842cc55f153a71fa66b1d3e25e9ab7 (patch) | |
tree | 64c37894239daf920cd50d886e918271106d14b8 /utils | |
parent | fbd4dd9c5eba6f8f10bcc0db30a72ea3378c149b (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')
-rw-r--r-- | utils/src/ping_server.cc | 4 |
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(); } |