XrdNetSecurity Class Reference

#include <XrdNetSecurity.hh>

List of all members.

Public Member Functions

void AddHost (char *hname)
void AddNetGroup (char *hname)
char * Authorize (struct sockaddr *addr)
void Merge (XrdNetSecurity *srcp)
void Trace (XrdOucTrace *et=0)
 XrdNetSecurity ()
 ~XrdNetSecurity ()

Private Member Functions

char * hostOK (char *hname, const char *ipname, const char *why)

Private Attributes

XrdOucNList_Anchor HostList
XrdNetTextListNetGroups
XrdOucHash< char > OKHosts
XrdSysMutex okHMutex
XrdOucTraceeTrace
int lifetime

Static Private Attributes

static const char * TraceID


Detailed Description

Definition at line 26 of file XrdNetSecurity.hh.


Constructor & Destructor Documentation

XrdNetSecurity::XrdNetSecurity (  )  [inline]

Definition at line 40 of file XrdNetSecurity.hh.

References eTrace, lifetime, and NetGroups.

XrdNetSecurity::~XrdNetSecurity (  )  [inline]

Definition at line 41 of file XrdNetSecurity.hh.


Member Function Documentation

void XrdNetSecurity::AddHost ( char *  hname  ) 

Definition at line 71 of file XrdNetSecurity.cc.

References XrdOucHash< T >::Add(), DEBUG, XrdNetDNS::getHostName(), Hash_dofree, HostList, XrdOucNList_Anchor::Insert(), and OKHosts.

Referenced by XrdCmsConfig::xallow(), and XrdConfig::xallow().

void XrdNetSecurity::AddNetGroup ( char *  hname  ) 

Definition at line 90 of file XrdNetSecurity.cc.

References DEBUG, NetGroups, and XrdNetTextList::next.

Referenced by XrdCmsConfig::xallow(), and XrdConfig::xallow().

char * XrdNetSecurity::Authorize ( struct sockaddr *  addr  ) 

Definition at line 108 of file XrdNetSecurity.cc.

References DEBUG, XrdOucHash< T >::Find(), XrdOucNList_Anchor::Find(), free(), XrdNetDNS::getHostName(), HostList, hostOK(), inet_ntop(), XrdSysMutex::Lock(), NetGroups, XrdNetTextList::next, okHMutex, OKHosts, XrdNetTextList::text, and XrdSysMutex::UnLock().

Referenced by XrdNet::do_Accept_TCP(), and XrdNet::do_Accept_UDP().

void XrdNetSecurity::Merge ( XrdNetSecurity srcp  ) 

Definition at line 153 of file XrdNetSecurity.cc.

References HostList, NetGroups, XrdNetTextList::next, XrdOucNList_Anchor::Pop(), XrdOucNList_Anchor::Replace(), and XrdNetTextList::text.

Referenced by XrdNet::Secure().

void XrdNetSecurity::Trace ( XrdOucTrace et = 0  )  [inline]

Definition at line 38 of file XrdNetSecurity.hh.

References eTrace.

char * XrdNetSecurity::hostOK ( char *  hname,
const char *  ipname,
const char *  why 
) [private]

Definition at line 186 of file XrdNetSecurity.cc.

References XrdOucHash< T >::Add(), DEBUG, Hash_dofree, lifetime, okHMutex, OKHosts, and XrdSysMutex::UnLock().

Referenced by Authorize().


Member Data Documentation

XrdOucNList_Anchor XrdNetSecurity::HostList [private]

Definition at line 47 of file XrdNetSecurity.hh.

Referenced by AddHost(), Authorize(), and Merge().

XrdNetTextList* XrdNetSecurity::NetGroups [private]

Definition at line 49 of file XrdNetSecurity.hh.

Referenced by AddNetGroup(), Authorize(), Merge(), and XrdNetSecurity().

XrdOucHash<char> XrdNetSecurity::OKHosts [private]

Definition at line 51 of file XrdNetSecurity.hh.

Referenced by AddHost(), Authorize(), and hostOK().

XrdSysMutex XrdNetSecurity::okHMutex [private]

Definition at line 52 of file XrdNetSecurity.hh.

Referenced by Authorize(), and hostOK().

XrdOucTrace* XrdNetSecurity::eTrace [private]

Definition at line 53 of file XrdNetSecurity.hh.

Referenced by Trace(), and XrdNetSecurity().

int XrdNetSecurity::lifetime [private]

Definition at line 55 of file XrdNetSecurity.hh.

Referenced by hostOK(), and XrdNetSecurity().

const char * XrdNetSecurity::TraceID [static, private]

Definition at line 56 of file XrdNetSecurity.hh.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:50:36 2011 for ROOT_528-00b_version by  doxygen 1.5.1