![]() |
XRootD
|
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <unistd.h>
#include <pwd.h>
#include <ctime>
#include "XrdOuc/XrdOucString.hh"
#include "XrdSys/XrdSysLogger.hh"
#include "XrdSys/XrdSysError.hh"
#include "XrdSys/XrdSysPwd.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/XrdCryptogsiX509Chain.hh"
#include "XrdSecgsi/XrdSecgsiTrace.hh"
Go to the source code of this file.
Macros | |
#define | PRT(x) {std::cerr <<x <<std::endl;} |
Enumerations | |
enum | kModes { kM_undef = 0 , kM_init = 1 , kM_info , kM_destroy , kM_help , kM_undef = 0 , kM_admin = 1 , kM_user , kM_netrc , kM_srvpuk , kM_help } |
Functions | |
bool | CheckOption (XrdOucString opt, const char *ref, int &ival) |
void | Display (XrdCryptoX509 *xp) |
int | main (int argc, char **argv) |
void | Menu () |
int | ParseArguments (int argc, char **argv) |
Variables | |
int | Bits = 2048 |
XrdOucString | CAdir = "/etc/grid-security/certificates/" |
int | ClockSkew = 30 |
XrdCryptoX509CreateProxy_t | CreateProxy = 0 |
XrdOucString | CRLdir = "/etc/grid-security/certificates/" |
XrdOucString | CryptoMod = "ssl" |
bool | Debug = 0 |
XrdOucString | DefEEcert = "/.globus/usercert.pem" |
XrdOucString | DefEEkey = "/.globus/userkey.pem" |
XrdOucString | DefPXcert = "/tmp/x509up_u" |
bool | DumpExtensions = 0 |
static XrdSysError | eDest (0,"proxy_") |
XrdOucString | EEcert = "" |
XrdOucString | EEkey = "" |
bool | Exists = 0 |
XrdCryptoFactory * | gCryptoFactory = 0 |
XrdCryptoX509GetVOMSAttr_t | GetVOMSAttr = 0 |
const char * | gModesStr [] |
XrdOucTrace * | gsiTrace = 0 |
static XrdSysLogger | Logger |
int | Mode = kM_undef |
XrdCryptoX509ParseFile_t | ParseFile = 0 |
int | PathLength = 0 |
XrdCryptoProxyCertInfo_t | ProxyCertInfo = 0 |
XrdOucString | PXcert = "" |
XrdOucString | Valid = "12:00" |
#define PRT | ( | x | ) | {std::cerr <<x <<std::endl;} |
Definition at line 64 of file XrdSecgsiProxy.cc.
enum kModes |
Enumerator | |
---|---|
kM_undef | |
kM_init | |
kM_info | |
kM_destroy | |
kM_help | |
kM_undef | |
kM_admin | |
kM_user | |
kM_netrc | |
kM_srvpuk | |
kM_help |
Definition at line 68 of file XrdSecgsiProxy.cc.
bool CheckOption | ( | XrdOucString | opt, |
const char * | ref, | ||
int & | ival | ||
) |
Definition at line 677 of file XrdSecgsiProxy.cc.
References XrdOucString::insert().
Referenced by ParseArguments().
void Display | ( | XrdCryptoX509 * | xp | ) |
Definition at line 704 of file XrdSecgsiProxy.cc.
References XrdCryptoX509::BitStrength(), cryptoTRACE_Debug, XrdCryptoX509::DumpExtensions(), DumpExtensions, gCryptoFactory, XrdCryptoX509::GetExtension(), GetVOMSAttr, gsiProxyCertInfo_OID, gsiProxyCertInfo_OLD_OID, XrdCryptoX509::Issuer(), XrdCryptoX509::kProxy, XrdOucString::length(), XrdCryptoX509::NotAfter(), ProxyCertInfo, XrdCryptoX509::ProxyType(), PRT, PXcert, XrdCryptoFactory::SetTrace(), XrdCryptoX509::Subject(), XrdOucString::tokenize(), XrdCryptoX509::type, XrdCryptoX509::Type(), and XrdCryptoTZCorr().
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 121 of file XrdSecgsiProxy.cc.
References XrdProxyOpt_t::bits, Bits, XrdCryptoX509::BitStrength(), XrdOucString::c_str(), ClockSkew, CreateProxy, CryptoMod, cryptoTRACE_Debug, Debug, XrdProxyOpt_t::depthlen, Display(), eDest, EEcert, EEkey, Exists, gCryptoFactory, XrdCryptoFactory::GetCryptoFactory(), GetVOMSAttr, gsiTrace, XrdCryptoX509::Issuer(), kM_destroy, kM_help, kM_info, kM_init, Logger, XrdSysError::logger(), Menu(), Mode, XrdCryptoX509::NotAfter(), ParseArguments(), ParseFile, PathLength, XrdCryptoFactory::ProxyCertInfo(), ProxyCertInfo, PRT, PXcert, XrdCryptoFactory::SetTrace(), XrdCryptoX509::Subject(), sutTRACE_Debug, TRACE_Authen, TRACE_Debug, unlink(), XrdProxyOpt_t::valid, Valid, XrdOucTrace::What, XrdCryptoFactory::X509CreateProxy(), XrdCryptoFactory::X509GetVOMSAttr(), XrdCryptoFactory::X509ParseFile(), XrdCryptoSetTrace(), XrdSutParseTime(), and XrdSutSetTrace().
void Menu | ( | ) |
Definition at line 629 of file XrdSecgsiProxy.cc.
References PRT.
Referenced by main(), and ParseArguments().
int ParseArguments | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 285 of file XrdSecgsiProxy.cc.
References Bits, XrdOucString::c_str(), CAdir, CheckOption(), ClockSkew, Debug, DefEEcert, DefEEkey, DefPXcert, DumpExtensions, EEcert, EEkey, XrdOucString::erase(), Exists, XrdSysPwd::Get(), XrdOucString::insert(), kM_destroy, kM_help, kM_info, kM_init, XrdOucString::length(), Menu(), Mode, PathLength, PRT, PXcert, stat(), Valid, XrdSutExpand(), and XrdSutHome().
Referenced by main().
int Bits = 2048 |
Definition at line 113 of file XrdSecgsiProxy.cc.
Referenced by main(), and ParseArguments().
XrdOucString CAdir = "/etc/grid-security/certificates/" |
Definition at line 104 of file XrdSecgsiProxy.cc.
Referenced by XrdSecProtocolgsi::Init(), and ParseArguments().
int ClockSkew = 30 |
Definition at line 115 of file XrdSecgsiProxy.cc.
Referenced by main(), and ParseArguments().
XrdCryptoX509CreateProxy_t CreateProxy = 0 |
Definition at line 101 of file XrdSecgsiProxy.cc.
Referenced by main().
XrdOucString CRLdir = "/etc/grid-security/certificates/" |
Definition at line 105 of file XrdSecgsiProxy.cc.
Referenced by XrdSecProtocolgsi::Init().
XrdOucString CryptoMod = "ssl" |
Definition at line 99 of file XrdSecgsiProxy.cc.
Referenced by XrdSecProtocolgsi::getCredentials(), and main().
bool Debug = 0 |
Definition at line 95 of file XrdSecgsiProxy.cc.
Referenced by main(), and ParseArguments().
XrdOucString DefEEcert = "/.globus/usercert.pem" |
Definition at line 106 of file XrdSecgsiProxy.cc.
Referenced by ParseArguments().
XrdOucString DefEEkey = "/.globus/userkey.pem" |
Definition at line 107 of file XrdSecgsiProxy.cc.
Referenced by ParseArguments().
XrdOucString DefPXcert = "/tmp/x509up_u" |
Definition at line 108 of file XrdSecgsiProxy.cc.
Referenced by ParseArguments().
bool DumpExtensions = 0 |
Definition at line 96 of file XrdSecgsiProxy.cc.
Referenced by Display(), and ParseArguments().
|
static |
Referenced by main().
XrdOucString EEcert = "" |
Definition at line 109 of file XrdSecgsiProxy.cc.
Referenced by main(), and ParseArguments().
XrdOucString EEkey = "" |
Definition at line 110 of file XrdSecgsiProxy.cc.
Referenced by main(), and ParseArguments().
bool Exists = 0 |
Definition at line 97 of file XrdSecgsiProxy.cc.
Referenced by XrdCmsBaseFS::Exists(), main(), and ParseArguments().
XrdCryptoFactory* gCryptoFactory = 0 |
Definition at line 98 of file XrdSecgsiProxy.cc.
XrdCryptoX509GetVOMSAttr_t GetVOMSAttr = 0 |
Definition at line 102 of file XrdSecgsiProxy.cc.
const char* gModesStr[] |
Definition at line 75 of file XrdSecgsiProxy.cc.
XrdOucTrace* gsiTrace = 0 |
Definition at line 119 of file XrdSecgsiProxy.cc.
Referenced by main().
|
static |
Definition at line 117 of file XrdSecgsiProxy.cc.
Referenced by main().
int Mode = kM_undef |
Definition at line 94 of file XrdSecgsiProxy.cc.
Referenced by XrdFrmCns::Add(), XrdSsiSfs::chmod(), XrdSfsNative::chmod(), XrdOfs::chmod(), XrdThrottle::FileSystem::chmod(), XrdOssFile::Fchmod(), XrdOssDFHandler::Fchmod(), XrdFrcReqFile::Init(), XrdOfsPoscq::Init(), main(), XrdFrcUtils::makePath(), XrdFrcUtils::makeQDir(), XrdSsiSfs::mkdir(), XrdSfsNative::mkdir(), XrdOfs::mkdir(), XrdThrottle::FileSystem::mkdir(), XrdOssFile::Open(), XrdOssCsiFile::Open(), XrdPssFile::Open(), XrdSfsNativeFile::open(), XrdOfsFile::open(), XrdSsiFile::open(), XrdOssWrapDF::Open(), XrdOssDFHandler::Open(), StatsFile::Open(), ParseArguments(), XrdOfsHandle::PoscGet(), XrdOssSys::Stage(), XrdOssSys::Stage_QT(), and XrdFrcUtils::Unique().
XrdCryptoX509ParseFile_t ParseFile = 0 |
Definition at line 100 of file XrdSecgsiProxy.cc.
Referenced by main().
int PathLength = 0 |
Definition at line 114 of file XrdSecgsiProxy.cc.
Referenced by main(), and ParseArguments().
XrdCryptoProxyCertInfo_t ProxyCertInfo = 0 |
Definition at line 103 of file XrdSecgsiProxy.cc.
XrdOucString PXcert = "" |
Definition at line 111 of file XrdSecgsiProxy.cc.
Referenced by Display(), main(), and ParseArguments().
XrdOucString Valid = "12:00" |
Definition at line 112 of file XrdSecgsiProxy.cc.
Referenced by XrdEc::block_t::get_stripes(), main(), ParseArguments(), and XrdEc::block_t::read_callback().