blob: 91c0150d17928190a88a7219e5824b8fffb3b283 [file] [log] [blame]
akmhoque099495b2014-03-11 16:01:19 -05001#include <ndn-cpp-dev/security/signature-sha256-with-rsa.hpp>
2#include "nlsr_cse.hpp"
3
akmhoque05d5fcf2014-04-15 14:58:45 -05004#define THIS_FILE "nlsr_cse.cpp"
5
akmhoque099495b2014-03-11 16:01:19 -05006namespace nlsr
7{
akmhoque5a44dd42014-03-12 18:11:32 -05008 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 }
akmhoque099495b2014-03-11 16:01:19 -050020}