Change Interest.nonce to a Blob.
diff --git a/ndn-cpp/interest.hpp b/ndn-cpp/interest.hpp
index bd7991f..8f47f1a 100644
--- a/ndn-cpp/interest.hpp
+++ b/ndn-cpp/interest.hpp
@@ -200,7 +200,7 @@
double getInterestLifetimeMilliseconds() const { return interestLifetimeMilliseconds_; }
- const std::vector<unsigned char>& getNonce() const { return nonce_; }
+ const Blob& getNonce() const { return nonce_; }
/**
* Clear this interest, and set the values by copying from the interest struct.
@@ -242,7 +242,7 @@
int answerOriginKind_;
int scope_;
double interestLifetimeMilliseconds_;
- std::vector<unsigned char> nonce_;
+ Blob nonce_;
};
}