xrootd
Main Page
Namespaces
Classes
Files
File List
File Members
src
XrdSec
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
16
#include "
XrdSec/XrdSecInterface.hh
"
17
18
class
XrdSecProtocolhost
:
public
XrdSecProtocol
19
{
20
public
:
21
22
int
Authenticate
(
XrdSecCredentials
*cred,
23
XrdSecParameters
**parms,
24
XrdOucErrInfo
*einfo=0);
25
26
XrdSecCredentials
*
getCredentials
(
XrdSecParameters
*parm=0,
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);}
37
~XrdSecProtocolhost
() {
if
(
theHost
) free(
theHost
);}
38
private
:
39
40
char
*
theHost
;
41
};
42
#endif
Generated by
1.8.1.2