00001 00009 #ifndef HTTPSERVERBLACKLIST_H_ 00010 #define HTTPSERVERBLACKLIST_H_ 00011 00012 //#include "stdafx.h" 00013 #include "PKIFdll.h" 00014 #include <string> 00015 #include <vector> 00016 00017 namespace PKIFHTTP { 00018 void CAC_API AddBlacklistedHttpServer(std::string& server, bool bPermanent = true); 00019 void CAC_API RemoveBlacklistedHttpServer(std::string& server); 00020 bool CAC_API IsHttpServerBlacklisted(std::string& server); 00021 void CAC_API ClearHttpServerBlacklist(void); 00022 void CAC_API GetHttpServerBlacklist(std::vector<std::string> & bl); 00023 }; 00024 00025 void GetHostFromUri(const char* url_in, std::string& hostOut); 00026 00027 #endif //HTTPSERVERBLACKLIST_H_