xrootd
XrdSecProtocolhost.hh
Go to the documentation of this file.
1 #ifndef __SEC_PROTOCOL_HOST_H__
2 #define __SEC_PROTOCOL_HOST_H__
3 /******************************************************************************/
4 /* */
5 /* X r d S e c P r o t o c o l h o s t . h h */
6 /* */
7 /* (c) 2003 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 #include <stdlib.h>
14 #include <strings.h>
15 
17 
19 {
20 public:
21 
23  XrdSecParameters **parms,
24  XrdOucErrInfo *einfo=0);
25 
27  XrdOucErrInfo *einfo=0);
28 
29  const char *getParms(int &psize, const char *hname=0)
30  {psize = 5; return "host";}
31 
32 
33 void Delete() {delete this;}
34 
35  XrdSecProtocolhost(const char *host) : XrdSecProtocol("host")
36  {theHost = strdup(host);}
38 private:
39 
40 char *theHost;
41 };
42 #endif