#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) |
Enumerations | |
| enum | kModes { kM_undef = 0 , kM_init = 1 , kM_info , kM_destroy , 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 | ) |
Definition at line 64 of file XrdSecgsiProxy.cc.
Referenced by Display(), main(), Menu(), and ParseArguments().
| enum kModes |
| Enumerator | |
|---|---|
| kM_undef | |
| kM_init | |
| kM_info | |
| kM_destroy | |
| 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, DumpExtensions, XrdCryptoX509::DumpExtensions(), gCryptoFactory, XrdCryptoX509::GetExtension(), GetVOMSAttr, gsiProxyCertInfo_OID, gsiProxyCertInfo_OLD_OID, XrdCryptoX509::Issuer(), XrdCryptoX509::kProxy, XrdOucString::length(), XrdCryptoX509::NotAfter(), ProxyCertInfo, XrdCryptoX509::ProxyType(), PRT, PXcert, XrdCryptoX509::Subject(), XrdOucString::tokenize(), XrdCryptoX509::Type(), XrdCryptoX509::type, and XrdCryptoTZCorr().
| int main | ( | int | argc, |
| char ** | argv ) |
Definition at line 121 of file XrdSecgsiProxy.cc.
References XrdCryptoX509Chain::Begin(), Bits, XrdProxyOpt_t::bits, XrdCryptoX509::BitStrength(), 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, Menu(), Mode, XrdCryptoX509::NotAfter(), ParseArguments(), ParseFile, PathLength, ProxyCertInfo, PRT, PXcert, XrdCryptoX509Chain::SearchBySubject(), XrdCryptoX509::Subject(), sutTRACE_Debug, TRACE_Authen, TRACE_Debug, unlink, Valid, XrdProxyOpt_t::valid, 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(), kM_destroy, kM_help, kM_info, kM_init, 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 main(), 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.
| 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 XrdFrcProxy::XrdFrcProxy(), XrdPfc::IOFile::~IOFile(), XrdPfc::IOFileBlock::~IOFileBlock(), XrdCmsCluster::Add(), XrdPfc::File::AddIO(), XrdPfc::Cache::Attach(), XrdSsiFileSess::AttnInfo(), XrdPssSys::ConfigMapID(), XrdCmsConfig::Configure2(), XrdPfc::Cache::ConsiderCached(), XrdPfc::IOFile::DetachFinalize(), XrdPfc::Cache::DetermineFullFileSize(), XrdPfc::Cache::ExecuteCommandUrl(), XrdPfc::File::FinalizeSyncBeforeExit(), XrdXmlRdrTiny::GetElement(), XrdXmlRdrXml2::GetElement(), XrdPfc::Cache::GetFile(), XrdSecServer::getParms(), XrdPfc::ResourceMonitor::heart_beat(), XrdPfc::File::ioActive(), XrdPfc::Cache::LocalFilePath(), main(), main(), XrdPfc::OldStylePurgeDriver(), ParseArguments(), XrdPfc::File::Prefetch(), XrdOssFile::Read(), XrdOssFile::ReadV(), XrdPfc::Cache::ReleaseFile(), XrdPfc::File::RemoveIO(), XrdPfc::Cache::Stat(), XrdPfc::Cache::UnlinkFile(), XrdPfc::UnlinkPurgeStateFilesInMap(), XrdOssFile::Write(), XrdPfc::Cache::WriteFileSizeXAttr(), and XrdVERSIONINFO().
| 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 |
| 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(), ParseArguments(), and XrdCl::ServerSpaceInfo::SelectLocations().
| 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.
Referenced by main().
| XrdOucTrace* gsiTrace = 0 |
Definition at line 119 of file XrdSecgsiProxy.cc.
|
static |
Definition at line 117 of file XrdSecgsiProxy.cc.
| int Mode = kM_undef |
Definition at line 94 of file XrdSecgsiProxy.cc.
Referenced by XrdCl::OpenImpl< HasHndl >::OpenImpl(), XrdCl::OpenImpl< HasHndl >::OpenImpl(), XrdFrmCns::Add(), XrdBwm::chmod(), XrdDigFS::chmod(), XrdOfs::chmod(), XrdSfsNative::chmod(), XrdSsiSfs::chmod(), XrdThrottle::FileSystem::chmod(), XrdPssSys::Create(), XrdOssDFHandler::Fchmod(), XrdOssFile::Fchmod(), XrdFrcReqFile::Init(), XrdOfsPoscq::Init(), main(), XrdFrcUtils::makePath(), XrdFrcUtils::makeQDir(), XrdBwm::mkdir(), XrdDigFS::mkdir(), XrdOfs::mkdir(), XrdSfsNative::mkdir(), XrdSsiSfs::mkdir(), XrdThrottle::FileSystem::mkdir(), XrdOssCsiFile::Open(), XrdOssDF::Open(), XrdOssDFHandler::Open(), XrdOssFile::Open(), XrdOssStats::File::Open(), XrdOssWrapDF::Open(), XrdPssFile::Open(), XrdBwmFile::open(), XrdDigFile::open(), XrdOfsFile::open(), XrdSfsNativeFile::open(), XrdSsiFile::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 main(), and ParseArguments().