CRLPassedNextUpdate.cpp

Go to the documentation of this file.
00001 
00009 #include "CRLPassedNextUpdate.h"
00010 #include "PKIFCacheErrors.h"
00011 #include "GottaMatch.h"
00012 #include "ToolkitUtils.h"
00013 #include "DPAndCRLPair.h"
00014 
00015 #include "boost/filesystem/operations.hpp"
00016 #include "boost/filesystem/path.hpp"
00017 
00018 #include "CRL.h"
00019 #include "PKIFTime.h"
00020 
00021 
00022 namespace fs = boost::filesystem;
00023 
00030 bool CRLPassedNextUpdate::operator ()(const CPKIFCRLPtr& crl)
00031 {
00032     LOG_STRING_DEBUG("CRLPassedNextUpdate::operator ()", TOOLKIT_SR_MISC, 0, this);
00033 
00034     CPKIFTimePtr nextUpdate = crl->NextUpdate();
00035     if(nextUpdate == (CPKIFTime*)NULL)
00036         return true;
00037     else if(*nextUpdate < *m_time)
00038         return true;
00039     else
00040         return false;
00041 }
00042 
00049 bool CRLPassedNextUpdate::operator ()(const DPAndCRLPairPtr& dp)
00050 {
00051     LOG_STRING_DEBUG("CRLPassedNextUpdate::operator ()", TOOLKIT_SR_MISC, 0, this);
00052 
00053     CPKIFCRLPtr crl = dp->m_crl;
00054     CPKIFTimePtr nextUpdate = crl->NextUpdate();
00055     if(nextUpdate == (CPKIFTime*)NULL)
00056         return true;
00057     else if(*nextUpdate > *m_time)
00058         return true;
00059     else
00060         return false;
00061 }
00069 void CRLPassedNextUpdate::SetCurTime(
00071     CPKIFTimePtr& time) 
00072 {
00073     m_time = time;
00074 }
00075 

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