blob: f52fdc90bda9c17f3b6f614583ed0ed7e004bf75 [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
4namespace 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}