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 // $Id: XrdSecProtocolhost.hh,v 1.2 2005/03/01 05:58:43 abh Exp $ 00014 00015 #include <stdlib.h> 00016 #include <strings.h> 00017 00018 #include "XrdSec/XrdSecInterface.hh" 00019 00020 class XrdSecProtocolhost : public XrdSecProtocol 00021 { 00022 public: 00023 00024 int Authenticate (XrdSecCredentials *cred, 00025 XrdSecParameters **parms, 00026 XrdOucErrInfo *einfo=0); 00027 00028 XrdSecCredentials *getCredentials(XrdSecParameters *parm=0, 00029 XrdOucErrInfo *einfo=0); 00030 00031 const char *getParms(int &psize, const char *hname=0) 00032 {psize = 5; return "host";} 00033 00034 00035 void Delete() {delete this;} 00036 00037 XrdSecProtocolhost(const char *host) {theHost = strdup(host);} 00038 ~XrdSecProtocolhost() {if (theHost) free(theHost);} 00039 private: 00040 00041 char *theHost; 00042 }; 00043 #endif
1.7.1