| #include <ndn-cpp-dev/security/signature-sha256-with-rsa.hpp> |
| #include "certificate-store-entry.hpp" |
| |
| namespace nlsr { |
| std::ostream& |
| operator<<(std::ostream& os, const CertificateStoreEntry& ncse) |
| { |
| os << "------Certificate Entry---------------" << std::endl; |
| os << *(ncse.getCert()) << std::endl; |
| ndn::SignatureSha256WithRsa sig(ncse.getCert()->getSignature()); |
| ndn::Name keyName = sig.getKeyLocator().getName(); |
| os << "Signee : " << keyName.toUri() << std::endl; |
| os << "Cert Seq Num: " << ncse.getCertSeqNum() << std::endl; |
| os << "Is Signer Verified: " << ncse.getIsSignerVerified() << std::endl; |
| return os; |
| } |
| }//namespace nlsr |