Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TVirtualAuth.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // Author: G. Ganis   08/07/05
0002 
0003 /*************************************************************************
0004  * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers.               *
0005  * All rights reserved.                                                  *
0006  *                                                                       *
0007  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0008  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0009  *************************************************************************/
0010 
0011 #ifndef ROOT_TVirtualAuth
0012 #define ROOT_TVirtualAuth
0013 
0014 //////////////////////////////////////////////////////////////////////////
0015 //                                                                      //
0016 // TVirtualAuth                                                         //
0017 //                                                                      //
0018 // Abstract interface for client authentication code.                   //
0019 //                                                                      //
0020 //////////////////////////////////////////////////////////////////////////
0021 
0022 #include "Rtypes.h"
0023 
0024 class TSocket;
0025 
0026 namespace ROOT::Deprecated {
0027 
0028 class TSecContext;
0029 
0030 class TVirtualAuth {
0031 
0032 public:
0033    TVirtualAuth() {}
0034    virtual ~TVirtualAuth() {}
0035 
0036    virtual TSecContext *Authenticate(TSocket *, const char *host,
0037                                      const char *user, Option_t *options) = 0;
0038    virtual Int_t        ClientVersion() = 0;
0039    virtual void         ErrorMsg(const char *where, Int_t ecode) = 0;
0040    virtual const char  *Name() = 0;
0041 
0042    ClassDef(TVirtualAuth,0)  // client auth interface
0043 };
0044 
0045 } // namespace ROOT::Deprecated
0046 
0047 using TVirtualAuth R__DEPRECATED(6, 42, "TVirtualAuth is deprecated. ROOT will not provide "
0048    "socket authentication anymore but assumes that TSocket connections are between trusted processes. "
0049    "Consider using SSH tunneling if you need secure network connections.") = ROOT::Deprecated::TVirtualAuth;
0050 
0051 #endif