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-AC03-76-SFO0515 with the Department of Energy */
11 /******************************************************************************/
12 
13 // $Id$
14 
15 #include "XrdSys/XrdSysError.hh"
16 #include "XrdSys/XrdSysLogger.hh"
17 #include "XrdOuc/XrdOucStream.hh"
19 #include "XrdSec/XrdSecPManager.hh"
20 
21 class XrdSecProtBind;
22 class XrdOucTrace;
23 
25 {
26 public:
27 
28 const char *getParms(int &size, const char *hname=0);
29 
30 // = 0 -> No protocol can be returned (einfo has the reason)
31 // ! 0 -> Address of protocol object is bing returned.
32 //
33 XrdSecProtocol *getProtocol(const char *host, // In
34  const struct sockaddr &hadr, // In
35  const XrdSecCredentials *cred, // In
36  XrdOucErrInfo *einfo=0);// Out
37 
38 int Configure(const char *cfn);
39 
41  ~XrdSecServer() {} // Server is never deleted
42 
43 private:
44 
46 
52 char *SToken;
53 char *STBuff;
54 int STBlen;
55 int Enforce;
57 
58 int add2token(XrdSysError &erp,char *,char **,int &,XrdSecPMask_t &);
59 int ConfigFile(const char *cfn);
60 int ConfigXeq(char *var, XrdOucStream &Config, XrdSysError &Eroute);
61 int ProtBind_Complete(XrdSysError &Eroute);
62 int xpbind(XrdOucStream &Config, XrdSysError &Eroute);
63 int xpparm(XrdOucStream &Config, XrdSysError &Eroute);
64 int xprot(XrdOucStream &Config, XrdSysError &Eroute);
65 int xtrace(XrdOucStream &Config, XrdSysError &Eroute);
66 };
67 #endif