akmhoque | 5335346 | 2014-04-22 08:43:45 -0500 | [diff] [blame] | 1 | #include <ndn-cpp-dev/security/signature-sha256-with-rsa.hpp> |
| 2 | #include "certificate-store-entry.hpp" |
| 3 | |
| 4 | namespace nlsr { |
| 5 | std::ostream& |
| 6 | operator<<(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 |