XrdSecgsiProxy.cc File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <pwd.h>
#include <time.h>
#include <XrdOuc/XrdOucString.hh>
#include <XrdSys/XrdSysLogger.hh>
#include <XrdSys/XrdSysError.hh>
#include <XrdSut/XrdSutAux.hh>
#include <XrdCrypto/XrdCryptoAux.hh>
#include <XrdCrypto/XrdCryptoFactory.hh>
#include <XrdCrypto/XrdCryptoX509.hh>
#include <XrdCrypto/XrdCryptoX509Req.hh>
#include <XrdCrypto/XrdCryptoX509Chain.hh>
#include <XrdCrypto/XrdCryptoX509Crl.hh>
#include <XrdCrypto/XrdCryptosslgsiX509Chain.hh>
#include <XrdCrypto/XrdCryptosslgsiAux.hh>
#include <XrdSecgsi/XrdSecgsiTrace.hh>

Go to the source code of this file.

Defines

#define PRT(x)   {cerr <<x <<endl;}

Enumerations

enum  kModes

Functions

void Menu ()
int ParseArguments (int argc, char **argv)
bool CheckOption (XrdOucString opt, const char *ref, int &ival)
void Display (XrdCryptoX509 *xp)
int main (int argc, char **argv)

Variables

const char * XrdSecgsiProxyCVSID = "$Id: XrdSecgsiProxy.cc 32800 2010-03-29 07:04:49Z ganis $"
const char * gModesStr []
int Mode = kM_undef
bool Debug = 0
bool Exists = 0
XrdCryptoFactorygCryptoFactory = 0
XrdOucString CryptoMod = "ssl"
XrdOucString CAdir = "/etc/grid-security/certificates/"
XrdOucString CRLdir = "/etc/grid-security/certificates/"
XrdOucString DefEEcert = "/.globus/usercert.pem"
XrdOucString DefEEkey = "/.globus/userkey.pem"
XrdOucString DefPXcert = "/tmp/x509up_u"
XrdOucString EEcert = ""
XrdOucString EEkey = ""
XrdOucString PXcert = ""
XrdOucString Valid = "12:00"
int Bits = 512
int PathLength = 0
int ClockSkew = 30
static XrdSysLogger Logger
static XrdSysError eDest (0,"proxy_")
XrdOucTracegsiTrace = 0


Define Documentation

#define PRT ( x   )     {cerr <<x <<endl;}

Definition at line 46 of file XrdSecgsiProxy.cc.

Referenced by AddPassword(), AskConfirm(), Display(), ExpPuk(), GeneratePuk(), GetEntry(), LocateFactoryIndex(), main(), Menu(), ParseArguments(), ParseCrypto(), ReadPasswd(), ReadPuk(), SavePasswd(), and SavePuk().


Enumeration Type Documentation

enum kModes

Definition at line 50 of file XrdSecgsiProxy.cc.


Function Documentation

bool CheckOption ( XrdOucString  opt,
const char *  ref,
int &  ival 
)

Definition at line 628 of file XrdSecgsiProxy.cc.

References XrdOucString::insert().

Referenced by ParseArguments().

void Display ( XrdCryptoX509 xp  ) 

Definition at line 655 of file XrdSecgsiProxy.cc.

References XrdCryptoX509::BitStrength(), XrdCryptoX509::GetExtension(), gsiProxyCertInfo_OID, int, XrdCryptoX509::Issuer(), XrdCryptoX509::NotAfter(), PRT, PXcert, XrdCryptoX509::Subject(), and XrdSslgsiProxyCertInfo().

Referenced by asim_asxml_var_init(), asim_get_drawable_size(), asim_parse_argb_color(), center_pixmap(), CopyAndShadeArea(), copyshade_drawable_area(), TGLWidget::CreateWindow(), cut_pixmap(), fill_with_darkened_background(), FillPixmapWithTile(), find_useable_visual(), TGX11::FindUsableVisual(), G__G__Proof_264_0_3(), G__G__Proof_346_0_2(), G__G__X11_155_0_61(), get_dpy_drawable_size(), GetRootDimensions(), GetRootPixmap(), grow_pixmap(), TGX11::Init(), TGLFormat::InitAvailableSamples(), TASImage::InitVisual(), main(), TGX11::OpenDisplay(), TGLContext::SetContext(), ValidatePixmap(), and x3d_set_display().

int main ( int  argc,
char **  argv 
)

Definition at line 98 of file XrdSecgsiProxy.cc.

References XrdProxyOpt_t::bits, Bits, XrdCryptoX509::BitStrength(), XrdOucString::c_str(), ClockSkew, CryptoMod, cryptoTRACE_Debug, Debug, XrdProxyOpt_t::depthlen, Display(), eDest, EEcert, EEkey, Exists, gCryptoFactory, XrdCryptoFactory::GetCryptoFactory(), gsiTrace, int, kM_destroy, kM_help, kM_info, kM_init, Logger, XrdSysError::logger(), Menu(), Mode, XrdCryptoX509::NotAfter(), ParseArguments(), PathLength, PRT, PXcert, XrdCryptoFactory::SetTrace(), sutTRACE_Debug, TRACE_Authen, TRACE_Debug, unlink, Valid, XrdProxyOpt_t::valid, XrdOucTrace::What, XrdCryptoFactory::X509ParseFile(), XrdCryptoSetTrace(), XrdSslgsiX509CreateProxy(), XrdSutParseTime(), and XrdSutSetTrace().

void Menu (  ) 

Definition at line 581 of file XrdSecgsiProxy.cc.

References PRT.

Referenced by main(), and ParseArguments().

int ParseArguments ( int  argc,
char **  argv 
)

Definition at line 239 of file XrdSecgsiProxy.cc.

References Bits, XrdOucString::c_str(), CAdir, CheckOption(), ClockSkew, Debug, DefEEcert, DefEEkey, DefPXcert, EEcert, EEkey, XrdOucString::erase(), Exists, XrdOucString::insert(), int, kM_destroy, kM_help, kM_info, kM_init, XrdOucString::length(), Menu(), Mode, PathLength, PRT, passwd::pw_uid, PXcert, S_IRGRP, S_IROTH, S_ISDIR, S_ISREG, S_IWGRP, S_IWOTH, S_IWUSR, stat, strtol(), Valid, XrdSutExpand(), and XrdSutHome().

Referenced by main().


Variable Documentation

int Bits = 512

Definition at line 90 of file XrdSecgsiProxy.cc.

Referenced by main(), and ParseArguments().

XrdOucString CAdir = "/etc/grid-security/certificates/"

Definition at line 81 of file XrdSecgsiProxy.cc.

Referenced by main(), and ParseArguments().

int ClockSkew = 30

Definition at line 92 of file XrdSecgsiProxy.cc.

Referenced by main(), and ParseArguments().

XrdOucString CRLdir = "/etc/grid-security/certificates/"

Definition at line 82 of file XrdSecgsiProxy.cc.

XrdOucString CryptoMod = "ssl"

Definition at line 80 of file XrdSecgsiProxy.cc.

Referenced by main().

bool Debug = 0

Definition at line 77 of file XrdSecgsiProxy.cc.

Referenced by XrdCmsProtocol::Dispatch(), G__G__Proof_143_0_6(), G__G__TMVA1_483_0_18(), G__G__Tree_113_0_42(), main(), ParseArguments(), XrdMpxVar::Pop(), XrdMpxVar::Push(), XrdOssFile::Read(), XrdOssFile::Write(), and XrdSecServer::xtrace().

XrdOucString DefEEcert = "/.globus/usercert.pem"

Definition at line 83 of file XrdSecgsiProxy.cc.

Referenced by ParseArguments().

XrdOucString DefEEkey = "/.globus/userkey.pem"

Definition at line 84 of file XrdSecgsiProxy.cc.

Referenced by ParseArguments().

XrdOucString DefPXcert = "/tmp/x509up_u"

Definition at line 85 of file XrdSecgsiProxy.cc.

Referenced by ParseArguments().

XrdSysError eDest(0,"proxy_") [static]

XrdOucString EEcert = ""

Definition at line 86 of file XrdSecgsiProxy.cc.

Referenced by main(), and ParseArguments().

XrdOucString EEkey = ""

Definition at line 87 of file XrdSecgsiProxy.cc.

Referenced by main(), and ParseArguments().

bool Exists = 0

Definition at line 78 of file XrdSecgsiProxy.cc.

Referenced by main(), ParseArguments(), and TTreeCacheUnzip::StopThreadUnzip().

XrdCryptoFactory* gCryptoFactory = 0

Definition at line 79 of file XrdSecgsiProxy.cc.

const char* gModesStr[]

Initial value:

 {
   "kM_undef",
   "kM_init",
   "kM_info",
   "kM_destroy",
   "kM_help"
}

Definition at line 57 of file XrdSecgsiProxy.cc.

Referenced by main().

XrdOucTrace* gsiTrace = 0

Definition at line 96 of file XrdSecgsiProxy.cc.

Referenced by XrdSecProtocolgsi::Init(), and main().

XrdSysLogger Logger [static]

Definition at line 94 of file XrdSecgsiProxy.cc.

int Mode = kM_undef

Definition at line 76 of file XrdSecgsiProxy.cc.

Referenced by RooSimPdfBuilder::buildPdf(), XrdFrmConfig::ConfigPF(), G__G__MathMore_240_0_17(), G__G__MathMore_240_0_18(), XrdCnsDaemon::getEvents(), TGQt::GetPasteBuffer(), XrdCnsLogClient::Init(), XrdFrmReqFile::Init(), XrdOfsPoscq::Init(), main(), XrdFrmAdmin::mkFile(), XrdCmsProtocol::Pander(), ParseArguments(), XrdFrmReqFile::ReWrite(), XrdOfsPoscq::ReWrite(), XrdFrmUtils::Unique(), and XrdFrmCID::Update().

int PathLength = 0

Definition at line 91 of file XrdSecgsiProxy.cc.

Referenced by main(), and ParseArguments().

XrdOucString PXcert = ""

Definition at line 88 of file XrdSecgsiProxy.cc.

Referenced by Display(), main(), and ParseArguments().

XrdOucString Valid = "12:00"

Definition at line 89 of file XrdSecgsiProxy.cc.

Referenced by G__G__Geom1_173_0_126(), main(), and ParseArguments().

const char* XrdSecgsiProxyCVSID = "$Id: XrdSecgsiProxy.cc 32800 2010-03-29 07:04:49Z ganis $"

Definition at line 3 of file XrdSecgsiProxy.cc.


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