ROOT logo
// @(#)root/auth:$Id$
// Author: Gerardo Ganis   08/07/05

/*************************************************************************
 * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TRootAuth
#define ROOT_TRootAuth


//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TRootAuth                                                            //
//                                                                      //
// TVirtualAuth implementation based on the old client authentication   //
// code.                                                                //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifndef ROOT_TVirtualAuth
#include "TVirtualAuth.h"
#endif
#ifndef ROOT_Rtypes
#include "Rtypes.h"
#endif

class TSecContext;
class TSocket;

class TRootAuth : public TVirtualAuth {

public:
   TRootAuth() { }
   virtual ~TRootAuth() { }

   TSecContext *Authenticate(TSocket *, const char *host,
                             const char *user, Option_t *options = "");
   Int_t        ClientVersion();
   void         ErrorMsg(const char *where, Int_t ecode = -1);
   const char  *Name() { return "Root"; }

   ClassDef(TRootAuth,0)  // client auth interface
};

#endif
 TRootAuth.h:1
 TRootAuth.h:2
 TRootAuth.h:3
 TRootAuth.h:4
 TRootAuth.h:5
 TRootAuth.h:6
 TRootAuth.h:7
 TRootAuth.h:8
 TRootAuth.h:9
 TRootAuth.h:10
 TRootAuth.h:11
 TRootAuth.h:12
 TRootAuth.h:13
 TRootAuth.h:14
 TRootAuth.h:15
 TRootAuth.h:16
 TRootAuth.h:17
 TRootAuth.h:18
 TRootAuth.h:19
 TRootAuth.h:20
 TRootAuth.h:21
 TRootAuth.h:22
 TRootAuth.h:23
 TRootAuth.h:24
 TRootAuth.h:25
 TRootAuth.h:26
 TRootAuth.h:27
 TRootAuth.h:28
 TRootAuth.h:29
 TRootAuth.h:30
 TRootAuth.h:31
 TRootAuth.h:32
 TRootAuth.h:33
 TRootAuth.h:34
 TRootAuth.h:35
 TRootAuth.h:36
 TRootAuth.h:37
 TRootAuth.h:38
 TRootAuth.h:39
 TRootAuth.h:40
 TRootAuth.h:41
 TRootAuth.h:42
 TRootAuth.h:43
 TRootAuth.h:44
 TRootAuth.h:45
 TRootAuth.h:46
 TRootAuth.h:47
 TRootAuth.h:48
 TRootAuth.h:49
 TRootAuth.h:50