commit | aaf3a2181aec20e3df7546b4d1fc70586b00ee9b | [log] [tgz] |
---|---|---|
author | Yingdi Yu <yuyingdi@gmail.com> | Fri Jan 10 13:01:59 2014 -0800 |
committer | Yingdi Yu <yuyingdi@gmail.com> | Mon Jan 13 12:56:36 2014 -0800 |
tree | 7b3cb3a7e4a6c83a1bb53b89457d6421288ccd2d | |
parent | 913b0c7aca4a83212786dab7c6e8c9c3ef468b42 [diff] [blame] |
security: Adding Error in CertificateExtension Change-Id: I9ffb13a0db438513707adc9568ea52d1bf2e33bf
diff --git a/include/ndn-cpp/security/certificate/certificate-extension.hpp b/include/ndn-cpp/security/certificate/certificate-extension.hpp index d979d44..c212216 100644 --- a/include/ndn-cpp/security/certificate/certificate-extension.hpp +++ b/include/ndn-cpp/security/certificate/certificate-extension.hpp
@@ -23,6 +23,8 @@ class CertificateExtension { public: + struct Error : public std::runtime_error { Error(const std::string &what) : std::runtime_error(what) {} }; + CertificateExtension(CryptoPP::BufferedTransformation &in) { decode(in);