GlobusAuth.cxx File Reference

#include "RConfigure.h"
#include <errno.h>
#include <signal.h>
#include <string.h>
#include "TSocket.h"
#include "TAuthenticate.h"
#include "THostAuth.h"
#include "TDatime.h"
#include "TError.h"
#include "TSystem.h"
#include "TROOT.h"
#include "TApplication.h"
#include "TEnv.h"
#include "Getline.h"
#include "NetErrors.h"
#include <globus_common.h>
#include <globus_gss_assist.h>
#include <openssl/x509.h>
#include <openssl/pem.h>
#include <sys/ipc.h>
#include <sys/shm.h>

Go to the source code of this file.

Classes

class  GlobusAuthInit

Defines

#define HAVE_MEMMOVE   1

Functions

Int_t GlobusAuthenticate (TAuthenticate *, TString &, TString &)
Int_t GlobusCheckSecContext (const char *, gss_ctx_id_t)
Int_t GlobusCheckSecCtx (const char *, TRootSecContext *)
Int_t GlobusCleanupContext (gss_ctx_id_t)
void GlobusCleanupShm ()
Int_t GlobusIssuerName (TString &)
void GlobusError (const char *, OM_uint32, OM_uint32, Int_t)
Int_t GlobusGetCredHandle (Int_t, gss_cred_id_t *)
Int_t GlobusGetDelCred ()
void GlobusGetDetails (Int_t, Int_t, TString &)
Int_t GlobusGetLocalEnv (Int_t *, TString)
Int_t GlobusGetSecContLifeTime (gss_ctx_id_t)
Int_t GlobusNameFromCred (gss_cred_id_t, TString &)

Variables

static gss_cred_id_t gGlbCredHandle = GSS_C_NO_CREDENTIAL
static gss_cred_id_t gGlbDelCredHandle = GSS_C_NO_CREDENTIAL
static int gShmIdCred = -1
static GlobusAuthInit globusauth_init


Define Documentation

#define HAVE_MEMMOVE   1

Definition at line 36 of file GlobusAuth.cxx.


Function Documentation

Int_t GlobusAuthenticate ( TAuthenticate ,
TString ,
TString  
)

Definition at line 75 of file GlobusAuth.cxx.

References TDatime::AsString(), TAuthenticate::AuthExists(), buf, TDatime::Convert(), THostAuth::CreateSecContext(), TString::Data(), Error, fflush(), Form(), gDebug, TAuthenticate::GetAuthReUse(), TSocket::GetDescriptor(), TAuthenticate::GetHostAuth(), TInetAddress::GetHostName(), TSocket::GetInetAddress(), TAuthenticate::GetProtocol(), TSocket::GetRemoteProtocol(), TAuthenticate::GetRSAKeyType(), TAuthenticate::GetSocket(), gGlbCredHandle, GlobusCheckSecCtx(), GlobusCleanupContext(), GlobusCleanupShm(), GlobusError(), GlobusGetCredHandle(), GlobusGetDetails(), GlobusGetLocalEnv(), GlobusGetSecContLifeTime(), GlobusIssuerName(), GlobusNameFromCred(), Info, kAUTH_REUSE_MSK, kAUTH_RSATY_MSK, TAuthenticate::kGlobus, kMESS_STRING, kROOTD_ERR, kROOTD_GLOBUS, kROOTD_RSAKEY, TString::Length(), TSocket::Recv(), retval, TAuthenticate::SecureRecv(), TSocket::Send(), TAuthenticate::SendRSAPublicKey(), TDatime::Set(), TAuthenticate::SetSecContext(), sprintf(), StrDup(), type, and Warning().

Referenced by GlobusAuthInit::GlobusAuthInit().

Int_t GlobusCheckSecContext ( const char *  ,
gss_ctx_id_t   
)

Definition at line 684 of file GlobusAuth.cxx.

References gDebug, GlobusError(), Info, and name.

Referenced by GlobusCheckSecCtx().

Int_t GlobusCheckSecCtx ( const char *  ,
TRootSecContext  
)

Definition at line 632 of file GlobusAuth.cxx.

References TSecContext::GetContext(), GlobusCheckSecContext(), and TSecContext::IsActive().

Referenced by GlobusAuthenticate().

Int_t GlobusCleanupContext ( gss_ctx_id_t   ) 

Definition at line 612 of file GlobusAuth.cxx.

References gDebug, and GlobusError().

Referenced by GlobusAuthenticate().

void GlobusCleanupShm (  ) 

Definition at line 648 of file GlobusAuth.cxx.

References gDebug, TSystem::Getenv(), gROOT, gShmIdCred, gSystem, Info, TROOT::IsProofServ(), p, strtol(), and Warning().

Referenced by GlobusAuthenticate().

void GlobusError ( const char *  ,
OM_uint32  ,
OM_uint32  ,
Int_t   
)

Definition at line 453 of file GlobusAuth.cxx.

References Error.

Referenced by GlobusAuthenticate(), GlobusCheckSecContext(), GlobusCleanupContext(), GlobusGetCredHandle(), GlobusGetDelCred(), GlobusGetSecContLifeTime(), and GlobusNameFromCred().

int GlobusGetCredHandle ( Int_t  ,
gss_cred_id_t *   
)

Definition at line 761 of file GlobusAuth.cxx.

References TString::Data(), Error, TSystem::Exec(), Form(), gDebug, gEnv, TSystem::Getenv(), TEnv::GetValue(), gGlbDelCredHandle, GlobusError(), GlobusGetDelCred(), GlobusGetDetails(), gSystem, Info, retval, and Warning().

Referenced by GlobusAuthenticate().

int GlobusGetDelCred (  ) 

Definition at line 386 of file GlobusAuth.cxx.

References gDebug, gGlbDelCredHandle, GlobusError(), gShmIdCred, Info, memmove, size_t, and Warning().

Referenced by GlobusGetCredHandle().

void GlobusGetDetails ( Int_t  ,
Int_t  ,
TString  
)

Definition at line 884 of file GlobusAuth.cxx.

References TString::BeginsWith(), TString::Data(), TSystem::ExpandPathName(), Form(), gDebug, TAuthenticate::GetAuthReUse(), TAuthenticate::GetDefaultUser(), Getline(), TAuthenticate::GetPromptUser(), gROOT, gSystem, TSystem::HomeDirectory(), Info, TString::Insert(), TROOT::IsProofServ(), TString::kTrailing, TString::Length(), TString::Remove(), TSystem::Setenv(), t, TString::Tokenize(), and Warning().

Referenced by GlobusAuthenticate(), and GlobusGetCredHandle().

Int_t GlobusGetLocalEnv ( Int_t ,
TString   
)

Definition at line 472 of file GlobusAuth.cxx.

References TApplication::Argc(), TApplication::Argv(), TString::Data(), gDebug, TROOT::GetApplication(), TSystem::Getenv(), gGlbDelCredHandle, gROOT, gShmIdCred, gSystem, i, Info, TROOT::IsProofServ(), p, retval, and strtol().

Referenced by GlobusAuthenticate().

Int_t GlobusGetSecContLifeTime ( gss_ctx_id_t   ) 

Definition at line 581 of file GlobusAuth.cxx.

References gDebug, GlobusError(), Info, and name.

Referenced by GlobusAuthenticate().

Int_t GlobusIssuerName ( TString  ) 

Definition at line 992 of file GlobusAuth.cxx.

References TSystem::AccessPathName(), TString::Data(), emsg(), Error, fclose(), fopen, Form(), free(), gDebug, TSystem::Getenv(), TSystem::GetUid(), gSystem, TSystem::HomeDirectory(), Info, kFALSE, kReadPermission, kTRUE, and TString::Length().

Referenced by GlobusAuthenticate().

Int_t GlobusNameFromCred ( gss_cred_id_t  ,
TString  
)

Definition at line 539 of file GlobusAuth.cxx.

References TString::Data(), gDebug, GlobusError(), Info, and name.

Referenced by GlobusAuthenticate().


Variable Documentation

gss_cred_id_t gGlbCredHandle = GSS_C_NO_CREDENTIAL [static]

Definition at line 49 of file GlobusAuth.cxx.

Referenced by GlobusAuthenticate(), ROOT::RpdGlobusAuth(), and ROOT::RpdGlobusInit().

gss_cred_id_t gGlbDelCredHandle = GSS_C_NO_CREDENTIAL [static]

Definition at line 50 of file GlobusAuth.cxx.

Referenced by GlobusGetCredHandle(), GlobusGetDelCred(), and GlobusGetLocalEnv().

GlobusAuthInit globusauth_init [static]

Definition at line 72 of file GlobusAuth.cxx.

int gShmIdCred = -1 [static]

Definition at line 51 of file GlobusAuth.cxx.

Referenced by GlobusCleanupShm(), GlobusGetDelCred(), GlobusGetLocalEnv(), ROOT::RpdGlobusAuth(), and ROOT::RpdLogin().


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