|
xrootd
|
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sys/types.h>#include <sys/stat.h>#include <sys/time.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>
Defines | |
| #define | PRT(x) {cerr <<x <<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 | |
| 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$" |
| 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 |
| XrdOucTrace * | sslTrace = 0 |
| #define PRT | ( | x | ) | {cerr <<x <<endl;} |
Referenced by Display(), main(), Menu(), and ParseArguments().
| enum kModes |
| bool CheckOption | ( | XrdOucString | opt, |
| const char * | ref, | ||
| int & | ival | ||
| ) |
References XrdOucString::insert().
Referenced by ParseArguments().
| void Display | ( | XrdCryptoX509 * | xp | ) |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
References Bits, XrdProxyOpt_t::bits, XrdCryptoX509::BitStrength(), XrdOucString::c_str(), ClockSkew, cryptoTRACE_Debug, Debug, XrdProxyOpt_t::depthlen, Display(), eDest, Exists, XrdCryptoFactory::GetCryptoFactory(), kM_destroy, kM_help, kM_info, kM_init, XrdSysError::logger(), Menu(), Mode, XrdCryptoX509::NotAfter(), ParseArguments(), PathLength, PRT, XrdCryptoFactory::SetTrace(), sutTRACE_Debug, TRACE_Authen, TRACE_Debug, unlink(), XrdProxyOpt_t::valid, XrdOucTrace::What, XrdCryptoFactory::X509ParseFile(), XrdCryptoSetTrace(), XrdSslgsiX509CreateProxy(), XrdSutParseTime(), and XrdSutSetTrace().
| void Menu | ( | ) |
References PRT.
Referenced by main(), and ParseArguments().
| int ParseArguments | ( | int | argc, |
| char ** | argv | ||
| ) |
References Bits, XrdOucString::c_str(), CheckOption(), ClockSkew, Debug, DefEEcert, DefEEkey, XrdOucString::erase(), Exists, XrdOucString::insert(), kM_destroy, kM_help, kM_info, kM_init, XrdOucString::length(), Menu(), Mode, PathLength, PRT, S_IRGRP, S_IROTH, S_ISDIR, S_ISREG, S_IWGRP, S_IWOTH, S_IWUSR, stat(), XrdSutExpand(), and XrdSutHome().
Referenced by main().
| int Bits = 512 |
Referenced by main(), and ParseArguments().
| XrdOucString CAdir = "/etc/grid-security/certificates/" |
Referenced by main().
| int ClockSkew = 30 |
Referenced by main(), and ParseArguments().
| XrdOucString CRLdir = "/etc/grid-security/certificates/" |
| XrdOucString CryptoMod = "ssl" |
| bool Debug = 0 |
Referenced by XrdCmsProtocol::Dispatch(), main(), ParseArguments(), XrdOssFile::Read(), XrdOssFile::Write(), and XrdSecServer::xtrace().
| XrdOucString DefEEcert = "/.globus/usercert.pem" |
Referenced by ParseArguments().
| XrdOucString DefEEkey = "/.globus/userkey.pem" |
Referenced by ParseArguments().
| XrdOucString DefPXcert = "/tmp/x509up_u" |
XrdSysError eDest(0,"proxy_") [static] |
Referenced by main().
| XrdOucString EEcert = "" |
| XrdOucString EEkey = "" |
| bool Exists = 0 |
Referenced by XrdCmsBaseFS::Exists(), main(), ParseArguments(), and XrdCmsBaseFS::Xeq().
| const char* gModesStr[] |
{
"kM_undef",
"kM_init",
"kM_info",
"kM_destroy",
"kM_help"
}
Referenced by main().
| XrdOucTrace* gsiTrace = 0 |
XrdSysLogger Logger [static] |
| int Mode = kM_undef |
Referenced by XrdFrmConfig::ConfigPF(), XrdCnsDaemon::getEvents(), XrdOfsPoscq::Init(), XrdFrmReqFile::Init(), XrdCnsLogClient::Init(), main(), XrdFrmAdmin::mkFile(), XrdCmsProtocol::Pander(), ParseArguments(), XrdOfsPoscq::ReWrite(), XrdFrmReqFile::ReWrite(), XrdFrmUtils::Unique(), and XrdFrmCID::Update().
| int PathLength = 0 |
Referenced by main(), and ParseArguments().
| XrdOucString PXcert = "" |
Referenced by main().
| XrdOucTrace* sslTrace = 0 |
| XrdOucString Valid = "12:00" |
| const char* XrdSecgsiProxyCVSID = "$Id$" |
1.7.4