00001 00009 #ifndef __CAPICRLUPDATE2_H__ 00010 #define __CAPICRLUPDATE2_H__ 00011 00012 #include "PKIFdll.h" 00013 #include "IPKIFCRLRepositoryUpdate.h" 00014 #include "IPKIFCAPISource.h" 00015 #include "IPKIFColleague.h" 00016 #include "components.h" 00017 00018 #include <wincrypt.h> 00019 00020 extern CAC_API char g_defCACCAPIStore[]; 00038 class CAC_API CPKIFCAPICRLUpdate2 : public IPKIFCRLRepositoryUpdate, public IPKIFColleague, public IPKIFCAPISource 00039 { 00040 public: 00041 CPKIFCAPICRLUpdate2(int sysStoRegLoc = CERT_SYSTEM_STORE_CURRENT_USER, const char* store = g_defCACCAPIStore); 00042 virtual ~CPKIFCAPICRLUpdate2(void); 00043 00044 //IPKIFColleague functions 00045 void Initialize(void); 00046 00047 //IPKIFCRLRepositoryUpdate functions 00048 void AddCRL(const CPKIFCRLPtr& crl, const CPKIFGeneralNamePtr& dp); 00049 void SetSuppressUpdateErrors(bool b); 00050 bool GetSuppressUpdateErrors() const; 00051 00052 00053 private: 00055 CPKIFCAPICRLUpdate2(const CPKIFCAPICRLUpdate2& copy); 00057 CPKIFCAPICRLUpdate2& operator=(const CPKIFCAPICRLUpdate2& rhs); //added 4/6/2004 00058 00059 struct CPKIFCAPICRLUpdate2Impl *m_impl; 00060 00061 enum {thisComponent = TOOLKIT_SR_CAPICRLUPDATE}; 00062 }; 00063 DECLARE_SMART_POINTERS(CPKIFCAPICRLUpdate2); 00064 00065 #endif