security: Fix bug in PrivateKeyStorage: for inline helpers, need to return the result.
diff --git a/include/ndn-cpp/security/identity/private-key-storage.hpp b/include/ndn-cpp/security/identity/private-key-storage.hpp
index 8917c92..5ade942 100644
--- a/include/ndn-cpp/security/identity/private-key-storage.hpp
+++ b/include/ndn-cpp/security/identity/private-key-storage.hpp
@@ -56,7 +56,7 @@
Blob
sign(const Blob& data, const Name& keyName, DigestAlgorithm digestAlgorithm = DIGEST_ALGORITHM_SHA256)
{
- sign(data.buf(), data.size(), keyName, digestAlgorithm);
+ return sign(data.buf(), data.size(), keyName, digestAlgorithm);
}
/**
@@ -73,7 +73,7 @@
Blob
decrypt(const Name& keyName, const Blob& data, bool isSymmetric = false)
{
- decrypt(keyName, data.buf(), data.size(), isSymmetric);
+ return decrypt(keyName, data.buf(), data.size(), isSymmetric);
}
/**
@@ -90,7 +90,7 @@
Blob
encrypt(const Name& keyName, const Blob& data, bool isSymmetric = false)
{
- encrypt(keyName, data.buf(), data.size(), isSymmetric);
+ return encrypt(keyName, data.buf(), data.size(), isSymmetric);
}
/**