xrootd
XrdSecServer.hh
Go to the documentation of this file.
1 #ifndef __XRDSECSERVER_H__
2 #define __XRDSECSERVER_H__
3 /******************************************************************************/
4 /* */
5 /* X r d S e c S e r v e r . h h */
6 /* */
7 /* (c) 2005 by the Board of Trustees of the Leland Stanford, Jr., University */
8 /* All Rights Reserved */
9 /* Produced by Andrew Hanushevsky for Stanford University under contract */
10 /* DE-AC02-76-SFO0515 with the Department of Energy */
11 /* */
12 /* This file is part of the XRootD software suite. */
13 /* */
14 /* XRootD is free software: you can redistribute it and/or modify it under */
15 /* the terms of the GNU Lesser General Public License as published by the */
16 /* Free Software Foundation, either version 3 of the License, or (at your */
17 /* option) any later version. */
18 /* */
19 /* XRootD is distributed in the hope that it will be useful, but WITHOUT */
20 /* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
21 /* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public */
22 /* License for more details. */
23 /* */
24 /* You should have received a copy of the GNU Lesser General Public License */
25 /* along with XRootD in a file called COPYING.LESSER (LGPL license) and file */
26 /* COPYING (GPL license). If not, see <http://www.gnu.org/licenses/>. */
27 /* */
28 /* The copyright holder's institutional names and contributor's names may not */
29 /* be used to endorse or promote products derived from this software without */
30 /* specific prior written permission of the institution or contributor. */
31 /******************************************************************************/
32 
33 #include "XrdSys/XrdSysError.hh"
34 #include "XrdSys/XrdSysLogger.hh"
35 #include "XrdOuc/XrdOucStream.hh"
37 #include "XrdSec/XrdSecPManager.hh"
38 
39 class XrdSecProtBind;
40 class XrdOucTrace;
41 class XrdNetAddrInfo;
42 
44 {
45 public:
46 
47 const char *getParms(int &size, XrdNetAddrInfo *endPoint=0);
48 
49 // = 0 -> No protocol can be returned (einfo has the reason)
50 // ! 0 -> Address of protocol object is bing returned.
51 //
52 XrdSecProtocol *getProtocol(const char *host, // In
53  XrdNetAddrInfo &endPoint,// In
54  const XrdSecCredentials *cred, // In
55  XrdOucErrInfo *einfo=0);// Out
56 
57 int Configure(const char *cfn);
58 
60  ~XrdSecServer() {} // Server is never deleted
61 
62 private:
63 
65 
68 XrdSecProtBind *bpFirst;
69 XrdSecProtBind *bpLast;
70 XrdSecProtBind *bpDefault;
71 char *SToken;
72 char *STBuff;
73 int STBlen;
74 int Enforce;
76 
77 int add2token(XrdSysError &erp,char *,char **,int &,XrdSecPMask_t &);
78 int ConfigFile(const char *cfn);
79 int ConfigXeq(char *var, XrdOucStream &Config, XrdSysError &Eroute);
80 int ProtBind_Complete(XrdSysError &Eroute);
81 int xlevel(XrdOucStream &Config, XrdSysError &Eroute);
82 int xpbind(XrdOucStream &Config, XrdSysError &Eroute);
83 int xpparm(XrdOucStream &Config, XrdSysError &Eroute);
84 int xprot(XrdOucStream &Config, XrdSysError &Eroute);
85 int xtrace(XrdOucStream &Config, XrdSysError &Eroute);
86 };
87 #endif
XrdSecInterface.hh
XrdSecServer::Enforce
int Enforce
Definition: XrdSecServer.hh:74
XrdSecServer::xprot
int xprot(XrdOucStream &Config, XrdSysError &Eroute)
XrdSecServer::SecTrace
XrdOucTrace * SecTrace
Definition: XrdSecServer.hh:67
XrdSecServer::XrdSecServer
XrdSecServer(XrdSysLogger *lp)
XrdNetAddrInfo
Definition: XrdNetAddrInfo.hh:53
XrdSecServer::PManager
static XrdSecPManager PManager
Definition: XrdSecServer.hh:64
XrdSecService
Definition: XrdSecInterface.hh:535
XrdSecServer::bpDefault
XrdSecProtBind * bpDefault
Definition: XrdSecServer.hh:70
XrdSecServer::bpLast
XrdSecProtBind * bpLast
Definition: XrdSecServer.hh:69
XrdOucStream
Definition: XrdOucStream.hh:45
XrdSecServer::ConfigXeq
int ConfigXeq(char *var, XrdOucStream &Config, XrdSysError &Eroute)
XrdSecServer::xlevel
int xlevel(XrdOucStream &Config, XrdSysError &Eroute)
XrdSecServer::getParms
const char * getParms(int &size, XrdNetAddrInfo *endPoint=0)
XrdSecServer::ProtBind_Complete
int ProtBind_Complete(XrdSysError &Eroute)
XrdSecServer::getProtocol
XrdSecProtocol * getProtocol(const char *host, XrdNetAddrInfo &endPoint, const XrdSecCredentials *cred, XrdOucErrInfo *einfo=0)
XrdSecServer
Definition: XrdSecServer.hh:43
XrdSecServer::STBuff
char * STBuff
Definition: XrdSecServer.hh:72
XrdSysLogger
Definition: XrdSysLogger.hh:52
XrdCms::Config
XrdCmsConfig Config
XrdSecServer::~XrdSecServer
~XrdSecServer()
Definition: XrdSecServer.hh:60
XrdSecBuffer
Generic structure to pass security information back and forth.
Definition: XrdSecInterface.hh:50
XrdSecServer::xpbind
int xpbind(XrdOucStream &Config, XrdSysError &Eroute)
XrdSecServer::implauth
int implauth
Definition: XrdSecServer.hh:75
XrdSecServer::Configure
int Configure(const char *cfn)
XrdSecProtocol
Definition: XrdSecInterface.hh:130
XrdSecServer::add2token
int add2token(XrdSysError &erp, char *, char **, int &, XrdSecPMask_t &)
XrdSecPManager.hh
XrdSecServer::bpFirst
XrdSecProtBind * bpFirst
Definition: XrdSecServer.hh:68
XrdSecServer::eDest
XrdSysError eDest
Definition: XrdSecServer.hh:66
XrdOucErrInfo
Definition: XrdOucErrInfo.hh:99
XrdOucTrace
Definition: XrdOucTrace.hh:35
XrdSecPManager
Definition: XrdSecPManager.hh:47
XrdSecServer::xpparm
int xpparm(XrdOucStream &Config, XrdSysError &Eroute)
XrdSysError
Definition: XrdSysError.hh:89
XrdSecServer::SToken
char * SToken
Definition: XrdSecServer.hh:71
XrdOucStream.hh
XrdSecPMask_t
int XrdSecPMask_t
Definition: XrdSecPManager.hh:40
XrdSecServer::STBlen
int STBlen
Definition: XrdSecServer.hh:73
XrdSecServer::xtrace
int xtrace(XrdOucStream &Config, XrdSysError &Eroute)
XrdSecServer::ConfigFile
int ConfigFile(const char *cfn)
XrdSysLogger.hh
XrdSysError.hh