IPKIFCRLRepository.cpp
Go to the documentation of this file.00001
00010 #include "IPKIFCRLRepository.h"
00011 #include "PKIFCRLNodeEntry.h"
00012 #include "PKIFPathSettings.h"
00013
00021 IPKIFCRLRepository::IPKIFCRLRepository()
00022 {
00023 }
00032 void IPKIFCRLRepository::GetCRLs(
00034 const CPKIFCertificatePtr& cert,
00036 CPKIFCRLNodeList& crlNodeList,
00038 PKIInfoSource source)
00039 {
00040
00041
00042
00043
00044 CPKIFCRLList crlList;
00045 GetCRLs(cert, crlList, source);
00046
00047 CPKIFCRLList::iterator pos;
00048 CPKIFCRLList::iterator end = crlList.end();
00049 for(pos = crlList.begin(); pos != end; ++pos)
00050 {
00051 CPKIFCRLNodeEntryPtr crlNode(new CPKIFCRLNodeEntry());
00052 crlNode->SetCRL((*pos));
00053
00054 crlNodeList.push_back(crlNode);
00055 }
00056 }
00065 void IPKIFCRLRepository::GetCRLs(
00067 const CPKIFCertificatePtr& cert,
00069 CPKIFCRLList& crlList,
00071 PKIInfoSource source,
00073 CPKIFPathSettingsPtr& ps)
00074 {
00075 GetCRLs(cert, crlList, source);
00076 }
00085 void IPKIFCRLRepository::GetCRLs(
00087 const CPKIFCertificatePtr& cert,
00089 CPKIFCRLNodeList& crlNodeList,
00091 PKIInfoSource source,
00093 CPKIFPathSettingsPtr& ps)
00094 {
00095 CPKIFCRLList crlList;
00096 GetCRLs(cert, crlList, source, ps);
00097
00098 CPKIFCRLList::iterator pos;
00099 CPKIFCRLList::iterator end = crlList.end();
00100 for(pos = crlList.begin(); pos != end; ++pos)
00101 {
00102 CPKIFCRLNodeEntryPtr crlNode(new CPKIFCRLNodeEntry());
00103 crlNode->SetCRL((*pos));
00104
00105 crlNodeList.push_back(crlNode);
00106 }
00107 }
00108