00001 00009 #ifndef __IPKIFSupportsSynonymousSources_H__ 00010 #define __IPKIFSupportsSynonymousSources_H__ 00011 00012 #include "PKIFdll.h" 00013 00014 FD_NODE_LIST_PTR(CPKIFCertificateNodeEntry); 00015 FD_CRL_NODE_LIST_PTR(CPKIFCRLNodeEntry); 00016 FD_SMART_PTR(CPKIFCertificate); 00017 FD_SMART_PTR(CPKIFName); 00018 FD_LIST_PTR(CPKIFCertificateSource); 00019 FD_LIST_PTR(CPKIFCrlSource); 00020 00033 class CAC_API IPKIFSupportsSynonymousCRLSources 00034 { 00035 public: 00036 IPKIFSupportsSynonymousCRLSources(); 00037 virtual ~IPKIFSupportsSynonymousCRLSources(); 00038 00039 virtual void GetCRLSources(const CPKIFCertificatePtr& cert, CPKIFCrlSourceList& crls, PKIInfoSource source = ALL) = 0; 00040 00041 private: 00043 IPKIFSupportsSynonymousCRLSources(const IPKIFSupportsSynonymousCRLSources& copy); 00045 IPKIFSupportsSynonymousCRLSources& operator=(const IPKIFSupportsSynonymousCRLSources& rhs); 00046 }; 00047 DECLARE_SMART_POINTERS(IPKIFSupportsSynonymousCRLSources); 00048 00061 class CAC_API IPKIFSupportsSynonymousCertSources 00062 { 00063 public: 00064 IPKIFSupportsSynonymousCertSources(); 00065 virtual ~IPKIFSupportsSynonymousCertSources(); 00066 00067 virtual void GetCertificateSources(const CPKIFCertificatePtr& cert, CPKIFCertificateSourceList& certs, PathBuildingDirection pbd = PBD_FORWARD) = 0; 00068 00069 private: 00071 IPKIFSupportsSynonymousCertSources(const IPKIFSupportsSynonymousCertSources& copy); 00073 IPKIFSupportsSynonymousCertSources& operator=(const IPKIFSupportsSynonymousCertSources& rhs); 00074 }; 00075 DECLARE_SMART_POINTERS(IPKIFSupportsSynonymousCertSources); 00076 00077 bool UriAlreadyInList(CPKIFCrlSourceList& list, std::string& uri); 00078 bool UriAlreadyInList(CPKIFCertificateSourceList& list, std::string& uri); 00079 00080 #endif 00081