commit | 27cc0a075c0261fc096421f4feb359e673e4b340 | [log] [tgz] |
---|---|---|
author | Jeff Thompson <jefft0@gmail.com> | Tue Aug 13 13:44:11 2013 -0700 |
committer | Jeff Thompson <jefft0@gmail.com> | Tue Aug 13 13:44:11 2013 -0700 |
tree | 886909828f090297f64ff6ef5a51ca8059531c7f | |
parent | 192e86bdbb3c256812e329f8d8ba88fe5c01a265 [diff] [blame] |
Fix bug: KeyLocator::getKeyOrCertificate should return a reference.
diff --git a/ndn-cpp/key.hpp b/ndn-cpp/key.hpp index a715bf3..f221505 100644 --- a/ndn-cpp/key.hpp +++ b/ndn-cpp/key.hpp
@@ -33,7 +33,7 @@ ndn_KeyLocatorType getType() const { return type_; } - const std::vector<unsigned char> getKeyOrCertificate() const { return keyOrCertificate_; } + const std::vector<unsigned char> &getKeyOrCertificate() const { return keyOrCertificate_; } // TODO: Implement getKeyName.