blob: 5cb7933881037f56c2c0311f487b49e663cc2867 [file] [log] [blame]
akmhoque53353462014-04-22 08:43:45 -05001#include <ndn-cpp-dev/security/signature-sha256-with-rsa.hpp>
2#include "certificate-store-entry.hpp"
3
4namespace nlsr {
5std::ostream&
6operator<<(std::ostream& os, const CertificateStoreEntry& ncse)
7{
8 os << "------Certificate Entry---------------" << std::endl;
9 os << *(ncse.getCert()) << std::endl;
10 ndn::SignatureSha256WithRsa sig(ncse.getCert()->getSignature());
11 ndn::Name keyName = sig.getKeyLocator().getName();
12 os << "Signee : " << keyName.toUri() << std::endl;
13 os << "Cert Seq Num: " << ncse.getCertSeqNum() << std::endl;
14 os << "Is Signer Verified: " << ncse.getIsSignerVerified() << std::endl;
15 return os;
16}
17}//namespace nlsr