IgnoreNotIssuedByOp.cpp

Go to the documentation of this file.
00001 
00009 #include "IgnoreNotIssuedByOp.h"
00010 
00011 #include "Name.h"
00012 #include "PKIFCertificateNodeEntry.h"
00013 #include "Certificate.h"
00014 #include "PKIFNameAndKeyWithScore.h"
00015 
00016 
00017 
00025 CPKIFCertificateNodeEntryPtr IgnoreNotIssuedByOp::operator()(
00027     const CPKIFCertificateNodeEntryPtr& lhs)
00028 {
00029     if(*lhs->GetCert()->Issuer() == *m_rhs)
00030     {
00031         lhs->ClearNameIgnore();
00032         return lhs;
00033     }
00034     else
00035     {
00036         lhs->SetNameIgnore();
00037         return lhs;
00038     }
00039 }
00047 CPKIFNameAndKeyWithScorePtr IgnoreNotIssuedByOp::operator()(
00049     const CPKIFNameAndKeyWithScorePtr& lhs)
00050 {
00051     if(*lhs->GetNameAndKey()->GetIssuerName() == *m_rhs)
00052     {
00053         lhs->ClearNameIgnore();
00054         return lhs;
00055     }
00056     else
00057     {
00058         lhs->SetNameIgnore();
00059         return lhs;
00060     }
00061 }
00069 void IgnoreNotIssuedByOp::SetRHS(
00071     CPKIFNamePtr& rhs) 
00072 {
00073     m_rhs = rhs;
00074 }

Generated on Mon Nov 15 11:15:51 2010 for PublicKeyInfrastructureFramework(PKIF) by  doxygen 1.5.6