#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 |
XrdCryptoFactory * | gCryptoFactory = 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_") |
XrdOucTrace * | gsiTrace = 0 |
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().
enum kModes |
Definition at line 50 of file XrdSecgsiProxy.cc.
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().
int Bits = 512 |
XrdOucString CAdir = "/etc/grid-security/certificates/" |
int ClockSkew = 30 |
XrdOucString CRLdir = "/etc/grid-security/certificates/" |
Definition at line 82 of file XrdSecgsiProxy.cc.
XrdOucString CryptoMod = "ssl" |
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" |
XrdOucString DefEEkey = "/.globus/userkey.pem" |
XrdOucString DefPXcert = "/tmp/x509up_u" |
XrdSysError eDest(0,"proxy_") [static] |
XrdOucString EEcert = "" |
XrdOucString EEkey = "" |
bool Exists = 0 |
Definition at line 78 of file XrdSecgsiProxy.cc.
Referenced by main(), ParseArguments(), and TTreeCacheUnzip::StopThreadUnzip().
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 |
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.