Renamed KeyLocator keyOrCertificate to keyData
diff --git a/ndn-cpp/key.cpp b/ndn-cpp/key.cpp
index 41fe8b9..e927a8e 100644
--- a/ndn-cpp/key.cpp
+++ b/ndn-cpp/key.cpp
@@ -14,11 +14,11 @@
{
keyLocatorStruct.type = type_;
- keyLocatorStruct.keyOrCertificateLength = keyOrCertificate_.size();
- if (keyOrCertificate_.size() > 0)
- keyLocatorStruct.keyOrCertificate = (unsigned char *)&keyOrCertificate_[0];
+ keyLocatorStruct.keyDataLength = keyData_.size();
+ if (keyData_.size() > 0)
+ keyLocatorStruct.keyData = (unsigned char *)&keyData_[0];
else
- keyLocatorStruct.keyOrCertificate = 0;
+ keyLocatorStruct.keyData = 0;
// TODO: Implement keyName.
}
@@ -26,7 +26,7 @@
void KeyLocator::set(const struct ndn_KeyLocator &keyLocatorStruct)
{
type_ = keyLocatorStruct.type;
- setVector(keyOrCertificate_, keyLocatorStruct.keyOrCertificate, keyLocatorStruct.keyOrCertificateLength);
+ setVector(keyData_, keyLocatorStruct.keyData, keyLocatorStruct.keyDataLength);
// TODO: Implement keyName.
}