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 | |
akmhoque | 05d5fcf | 2014-04-15 14:58:45 -0500 | [diff] [blame] | 4 | #define THIS_FILE "nlsr_cse.cpp" |
| 5 | |
akmhoque | 099495b | 2014-03-11 16:01:19 -0500 | [diff] [blame] | 6 | namespace nlsr |
| 7 | { |
akmhoque | 5a44dd4 | 2014-03-12 18:11:32 -0500 | [diff] [blame] | 8 | std::ostream& |
| 9 | operator <<(std::ostream& os, const NlsrCertificateStoreEntry& ncse) |
| 10 | { |
| 11 | os<<"------Certificate Entry---------------"<<std::endl; |
| 12 | os<<*(ncse.getCert())<<std::endl; |
| 13 | ndn::SignatureSha256WithRsa sig(ncse.getCert()->getSignature()); |
| 14 | ndn::Name keyName=sig.getKeyLocator().getName(); |
| 15 | os<<"Signee : "<<keyName.toUri()<<std::endl; |
| 16 | os<<"Cert Seq Num: "<<ncse.getCertSeqNum()<<std::endl; |
| 17 | os<<"Is Signer Verified: "<<ncse.getIsSignerVerified()<<std::endl; |
| 18 | return os; |
| 19 | } |
akmhoque | 099495b | 2014-03-11 16:01:19 -0500 | [diff] [blame] | 20 | } |