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.