|
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 "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/XrdCryptosslgsiX509Chain.hh"#include "XrdCrypto/XrdCryptosslgsiAux.hh"#include "XrdSecgsi/XrdSecgsiTrace.hh"
Macros | |
| #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 * | 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 |
| #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 | ) |
References XrdCryptoX509::BitStrength(), XrdCryptoX509::GetExtension(), gsiProxyCertInfo_OID, XrdCryptoX509::Issuer(), XrdOucString::length(), XrdCryptoX509::NotAfter(), PRT, XrdCryptoX509::Subject(), XrdOucString::tokenize(), XrdCryptoTZCorr(), XrdSslgsiProxyCertInfo(), and XrdSslgsiX509GetVOMSAttr().
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
References XrdProxyOpt_t::bits, Bits, XrdCryptoX509::BitStrength(), XrdOucString::c_str(), ClockSkew, cryptoTRACE_Debug, Debug, XrdProxyOpt_t::depthlen, Display(), eDest, Exists, XrdCryptoFactory::GetCryptoFactory(), XrdCryptoX509::Issuer(), kM_destroy, kM_help, kM_info, kM_init, XrdSysError::logger(), Menu(), Mode, XrdCryptoX509::NotAfter(), ParseArguments(), PathLength, PRT, XrdCryptoFactory::SetTrace(), XrdCryptoX509::Subject(), 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, XrdSysPwd::Get(), XrdOucString::insert(), kM_destroy, kM_help, kM_info, kM_init, XrdOucString::length(), Menu(), Mode, PathLength, PRT, 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(), XrdOssGetSS(), and XrdSecServer::xtrace().
| XrdOucString DefEEcert = "/.globus/usercert.pem" |
Referenced by ParseArguments().
| XrdOucString DefEEkey = "/.globus/userkey.pem" |
Referenced by ParseArguments().
| XrdOucString DefPXcert = "/tmp/x509up_u" |
|
static |
Referenced by main().
| XrdOucString EEcert = "" |
| XrdOucString EEkey = "" |
| bool Exists = 0 |
Referenced by XrdCmsBaseFS::Exists(), main(), ParseArguments(), and XrdCmsBaseFS::Xeq().
| XrdCryptoFactory* gCryptoFactory = 0 |
| const char* gModesStr[] |
Referenced by main().
| XrdOucTrace* gsiTrace = 0 |
|
static |
| int Mode = kM_undef |
Referenced by XrdFrmConfig::ConfigPF(), XrdCnsDaemon::getEvents(), XrdFrcReqFile::Init(), XrdCnsLogClient::Init(), XrdOfsPoscq::Init(), main(), XrdFrmAdmin::mkFile(), XrdCmsProtocol::Pander(), ParseArguments(), XrdOfsPoscq::ReWrite(), XrdFrcReqFile::ReWrite(), XrdFrcUtils::Unique(), and XrdFrcCID::Update().
| int PathLength = 0 |
Referenced by main(), and ParseArguments().
| XrdOucString PXcert = "" |
Referenced by main().
| XrdOucString Valid = "12:00" |
1.8.3.1