HttpServerBlacklist.cpp File Reference


Detailed Description

Subsystem: Miscellaneous/Utility (PKIFUTILS)

Module: HTTP server blacklist

Id
HttpServerBlacklist.cpp 9818 2009-04-22 20:32:52Z gbeier

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>

Include dependency graph for HttpServerBlacklist.cpp:

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


Function Documentation

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().


Variable Documentation

std::map<std::string, CPKIFTimePtr> g_autoHttpBlacklistedServers

std::vector<std::string> g_blacklistedHttpServers

Definition at line 27 of file HttpServerBlacklist.cpp.

Referenced by PKIFHTTP::AddBlacklistedHttpServer().


Generated on Mon Nov 15 11:17:03 2010 for PublicKeyInfrastructureFramework(PKIF) by  doxygen 1.5.6