akmhoque | 099495b | 2014-03-11 16:01:19 -0500 | [diff] [blame^] | 1 | #include <ndn-cpp-dev/security/signature-sha256-with-rsa.hpp> |
| 2 | #include "nlsr_cse.hpp" |
| 3 | |
| 4 | namespace nlsr |
| 5 | { |
| 6 | std::ostream& |
| 7 | operator <<(std::ostream& os, const NlsrCertificateStoreEntry& ncse) |
| 8 | { |
| 9 | os<<"------Certificate Entry---------------"<<std::endl; |
| 10 | os<<*(ncse.getCert())<<std::endl; |
| 11 | ndn::SignatureSha256WithRsa sig(ncse.getCert()->getSignature()); |
| 12 | ndn::Name keyName=sig.getKeyLocator().getName(); |
| 13 | os<<"Signee : "<<keyName.toUri()<<std::endl; |
| 14 | os<<"Cert Seq Num: "<<ncse.getCertSeqNum()<<std::endl; |
| 15 | os<<"Is Signer Verified: "<<ncse.getIsSignerVerified()<<std::endl; |
| 16 | return os; |
| 17 | } |
| 18 | } |