xrootd
XrdCmsSecurity.hh
Go to the documentation of this file.
1 #ifndef _CMS_SECURITY_H
2 #define _CMS_SECURITY_H
3 /******************************************************************************/
4 /* */
5 /* X r d C m s S e c u r i t y . h h */
6 /* */
7 /* (c) 2007 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 
13 #include <sys/types.h>
14 #include <sys/socket.h>
15 
17 
18 class XrdLink;
19 class XrdOucTList;
20 
22 {
23 public:
24 
25 static int Authenticate(XrdLink *Link, const char *Token, int tlen);
26 
27 static int Configure(const char *Lib, const char *Cfn=0);
28 
29 static const char *getToken(int &size, const char *hostname);
30 
31 static int Identify(XrdLink *Link, XrdCms::CmsRRHdr &inHdr,
32  char *authBuff, int abLen);
33 
34 static void setSecFunc(void *secfP);
35 
36 static char *setSystemID(XrdOucTList *tp, const char *iName,
37  const char *iHost, char iType);
38 
41 
42 private:
44 };
45 #endif