XrdSecProtocolhost.hh

Go to the documentation of this file.
00001 #ifndef __SEC_PROTOCOL_HOST_H__
00002 #define __SEC_PROTOCOL_HOST_H__
00003 /******************************************************************************/
00004 /*                                                                            */
00005 /*                 X r d S e c P r o t o c o l h o s t . h h                  */
00006 /*                                                                            */
00007 /* (c) 2003 by the Board of Trustees of the Leland Stanford, Jr., University  */
00008 /*                            All Rights Reserved                             */
00009 /*   Produced by Andrew Hanushevsky for Stanford University under contract    */
00010 /*              DE-AC03-76-SFO0515 with the Department of Energy              */
00011 /******************************************************************************/
00012 
00013 #include <stdlib.h>
00014 #include <strings.h>
00015 
00016 #include "XrdSec/XrdSecInterface.hh"
00017 
00018 class XrdSecProtocolhost : public XrdSecProtocol
00019 {
00020 public:
00021 
00022         int                Authenticate  (XrdSecCredentials  *cred,
00023                                           XrdSecParameters  **parms,
00024                                           XrdOucErrInfo      *einfo=0);
00025 
00026         XrdSecCredentials *getCredentials(XrdSecParameters  *parm=0,
00027                                           XrdOucErrInfo     *einfo=0);
00028 
00029         const char        *getParms(int &psize, const char *hname=0)
00030                                    {psize = 5; return "host";}
00031 
00032 
00033 void                       Delete() {delete this;}
00034 
00035               XrdSecProtocolhost(const char *host) : XrdSecProtocol("host")
00036                                    {theHost = strdup(host);}
00037              ~XrdSecProtocolhost() {if (theHost) free(theHost);}
00038 private:
00039 
00040 char *theHost;
00041 };
00042 #endif

Generated on Tue Jul 5 14:46:57 2011 for ROOT_528-00b_version by  doxygen 1.5.1