00001 00010 #include "PKIFCRLInfo.h" 00011 #include "CRL.h" 00012 #include "CRLEntry.h" 00013 00014 #include "ToolkitUtils.h" 00015 #include "components.h" 00016 00017 #include <iterator> 00018 00020 struct CPKIFCRLInfoImpl { 00021 CPKIFCRLList m_crls; 00022 CPKIFCRLEntryPtr m_crlEntry; 00023 }; 00025 00032 CPKIFCRLInfo::CPKIFCRLInfo() 00033 :m_impl(new CPKIFCRLInfoImpl) 00034 { 00035 LOG_STRING_DEBUG("CPKIFCRLInfo::CPKIFCRLInfo()", TOOLKIT_PATH_MISC, 0, this); 00036 } 00044 CPKIFCRLInfo::~CPKIFCRLInfo() 00045 { 00046 LOG_STRING_DEBUG("CPKIFCRLInfo::~CPKIFCRLInfo()", TOOLKIT_PATH_MISC, 0, this); 00047 delete m_impl; 00048 m_impl = 0; 00049 } 00058 void CPKIFCRLInfo::ClearCRLs() 00059 { 00060 m_impl->m_crls.clear(); 00061 00062 //added 4/15/2003 - CRW 00063 CPKIFCRLEntryPtr empty; 00064 m_impl->m_crlEntry = empty; 00065 } 00074 CPKIFCRLEntryPtr CPKIFCRLInfo::GetCRLEntry() const 00075 { 00076 return m_impl->m_crlEntry; 00077 } 00086 void CPKIFCRLInfo::SetCRLEntry( 00088 CPKIFCRLEntryPtr& crlEntry) 00089 { 00090 m_impl->m_crlEntry = crlEntry; 00091 } 00099 void CPKIFCRLInfo::GetCRLs( 00101 CPKIFCRLList& crls) const 00102 { 00103 copy(m_impl->m_crls.begin(), m_impl->m_crls.end(), back_inserter(crls)); 00104 } 00114 void CPKIFCRLInfo::AddCRL( 00116 CPKIFCRLPtr& crl) 00117 { 00118 m_impl->m_crls.push_back(crl); 00119 } 00120