Module: HTTP server blacklist
Definition in file HttpServerBlacklist.cpp.
#include "PKIFdll.h"
#include "PKIFTime.h"
#include "Duration.h"
#include "HttpServerBlacklist.h"
#include <cctype>
#include "LDAP_URL_Header.h"
#include <vector>
#include <string>
#include <map>
#include <boost/numeric/conversion/cast.hpp>
Go to the source code of this file.
Functions | |
void | GetHostFromUri (const char *url_in, std::string &hostOut) |
void CAC_API | PKIFHTTP::AddBlacklistedHttpServer (std::string &server, bool bPermanent=true) |
void CAC_API | PKIFHTTP::RemoveBlacklistedHttpServer (std::string &server) |
bool CAC_API | PKIFHTTP::IsHttpServerBlacklisted (std::string &server) |
void CAC_API | PKIFHTTP::ClearHttpServerBlacklist (void) |
void CAC_API | PKIFHTTP::GetHttpServerBlacklist (std::vector< std::string > &bl) |
Variables | |
const int | g_maxAutoHttpBlacklistEntries = 100 |
const int | g_numSecondsToLiveInHttpBlacklist = 300 |
std::vector< std::string > | g_blacklistedHttpServers |
std::map< std::string, CPKIFTimePtr > | g_autoHttpBlacklistedServers |
void GetHostFromUri | ( | const char * | url_in, | |
std::string & | hostOut | |||
) |
Definition at line 32 of file HttpServerBlacklist.cpp.
References stricmp.
Referenced by PKIFLDAP::IsBlacklisted(), and PKIFHTTP::IsHttpServerBlacklisted().
std::map<std::string, CPKIFTimePtr> g_autoHttpBlacklistedServers |
Definition at line 30 of file HttpServerBlacklist.cpp.
Referenced by PKIFHTTP::AddBlacklistedHttpServer(), PKIFHTTP::ClearHttpServerBlacklist(), PKIFHTTP::GetHttpServerBlacklist(), PKIFHTTP::IsHttpServerBlacklisted(), and PKIFHTTP::RemoveBlacklistedHttpServer().
std::vector<std::string> g_blacklistedHttpServers |
Definition at line 29 of file HttpServerBlacklist.cpp.
Referenced by PKIFHTTP::AddBlacklistedHttpServer(), PKIFHTTP::ClearHttpServerBlacklist(), PKIFHTTP::GetHttpServerBlacklist(), PKIFHTTP::IsHttpServerBlacklisted(), and PKIFHTTP::RemoveBlacklistedHttpServer().
const int g_maxAutoHttpBlacklistEntries = 100 |
Definition at line 27 of file HttpServerBlacklist.cpp.
Referenced by PKIFHTTP::AddBlacklistedHttpServer().
const int g_numSecondsToLiveInHttpBlacklist = 300 |
Definition at line 28 of file HttpServerBlacklist.cpp.
Referenced by PKIFHTTP::AddBlacklistedHttpServer(), PKIFHTTP::GetHttpServerBlacklist(), and PKIFHTTP::IsHttpServerBlacklisted().