summaryrefslogtreecommitdiffstats
path: root/libtransport/src
diff options
context:
space:
mode:
authorAlberto Compagno <acompagn+fdio@cisco.com>2019-02-13 17:45:14 +0100
committerAlberto Compagno <acompagn+fdio@cisco.com>2019-02-13 17:46:02 +0100
commitba47e022facc1fe7b9f71b29289539a33d377b6e (patch)
treeb364ffeaa1ac6f4c7c4d91c098db9e33a30dcaee /libtransport/src
parent13fccc2bb1c2317061e6bf985c87bca647fb3b6f (diff)
[HICN-62] Using the new API in libparc to remove a per-packet copy of the signature
Change-Id: I4d2dee75d7ba3ed94a1676fd4ab892c6bcad958a Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
Diffstat (limited to 'libtransport/src')
-rw-r--r--libtransport/src/hicn/transport/utils/signer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtransport/src/hicn/transport/utils/signer.cc b/libtransport/src/hicn/transport/utils/signer.cc
index d3a322a5e..7ebbc4636 100644
--- a/libtransport/src/hicn/transport/utils/signer.cc
+++ b/libtransport/src/hicn/transport/utils/signer.cc
@@ -129,7 +129,7 @@ void Signer::sign(Packet &packet) {
utils::CryptoHash hash = hasher.finalize();
- PARCSignature *signature = parcSigner_SignDigest(
+ PARCSignature *signature = parcSigner_SignDigestNoAlloc(
this->signer_, hash.hash_, packet.getSignature(), sign_len_bytes);
PARCBuffer *buffer = parcSignature_GetSignature(signature);