#include <XrdCrypto/XrdCryptosslgsiX509Chain.hh>
#include <XrdCrypto/XrdCryptoX509Req.hh>
#include <XrdCrypto/XrdCryptoRSA.hh>
Go to the source code of this file.
Classes | |
struct | XrdProxyOpt_t |
Defines | |
#define | gsiProxyCertInfo_OID "1.3.6.1.4.1.3536.1.222" |
#define | kErrPX_Error 1 |
#define | kErrPX_BadEECfile 2 |
#define | kErrPX_BadEECkey 3 |
#define | kErrPX_ExpiredEEC 4 |
#define | kErrPX_NoResources 5 |
#define | kErrPX_SetAttribute 6 |
#define | kErrPX_SetPathDepth 7 |
#define | kErrPX_Signing 8 |
#define | kErrPX_GenerateKey 9 |
#define | kErrPX_ProxyFile 10 |
#define | kErrPX_BadNames 11 |
#define | kErrPX_BadSerial 12 |
#define | kErrPX_BadExtension 13 |
Functions | |
bool | XrdSslgsiProxyCertInfo (const void *ext, int &pathlen, bool *haspolicy=0) |
void | XrdSslgsiSetPathLenConstraint (void *ext, int pathlen) |
int | XrdSslgsiX509CreateProxy (const char *, const char *, XrdProxyOpt_t *, XrdCryptosslgsiX509Chain *, XrdCryptoRSA **, const char *) |
int | XrdSslgsiX509CreateProxyReq (XrdCryptoX509 *, XrdCryptoX509Req **, XrdCryptoRSA **) |
int | XrdSslgsiX509SignProxyReq (XrdCryptoX509 *, XrdCryptoRSA *, XrdCryptoX509Req *, XrdCryptoX509 **) |
#define gsiProxyCertInfo_OID "1.3.6.1.4.1.3536.1.222" |
Definition at line 22 of file XrdCryptosslgsiAux.hh.
Referenced by Display(), XrdCryptosslgsiX509Chain::Verify(), XrdSslgsiProxyCertInfo(), XrdSslgsiSetPathLenConstraint(), XrdSslgsiX509CreateProxy(), XrdSslgsiX509CreateProxyReq(), and XrdSslgsiX509SignProxyReq().
#define kErrPX_BadEECfile 2 |
#define kErrPX_BadEECkey 3 |
Definition at line 58 of file XrdCryptosslgsiAux.hh.
Referenced by XrdSslgsiX509CreateProxy(), and XrdSslgsiX509SignProxyReq().
#define kErrPX_BadExtension 13 |
#define kErrPX_BadNames 11 |
#define kErrPX_BadSerial 12 |
Definition at line 67 of file XrdCryptosslgsiAux.hh.
#define kErrPX_Error 1 |
Definition at line 56 of file XrdCryptosslgsiAux.hh.
Referenced by XrdSslgsiX509CreateProxy(), XrdSslgsiX509CreateProxyReq(), and XrdSslgsiX509SignProxyReq().
#define kErrPX_ExpiredEEC 4 |
Definition at line 59 of file XrdCryptosslgsiAux.hh.
Referenced by XrdSslgsiX509CreateProxy(), XrdSslgsiX509CreateProxyReq(), and XrdSslgsiX509SignProxyReq().
#define kErrPX_GenerateKey 9 |
Definition at line 64 of file XrdCryptosslgsiAux.hh.
Referenced by XrdSslgsiX509CreateProxy(), and XrdSslgsiX509CreateProxyReq().
#define kErrPX_NoResources 5 |
Definition at line 60 of file XrdCryptosslgsiAux.hh.
Referenced by XrdSslgsiX509CreateProxy(), XrdSslgsiX509CreateProxyReq(), and XrdSslgsiX509SignProxyReq().
#define kErrPX_ProxyFile 10 |
#define kErrPX_SetAttribute 6 |
Definition at line 61 of file XrdCryptosslgsiAux.hh.
Referenced by XrdSslgsiX509CreateProxy(), XrdSslgsiX509CreateProxyReq(), and XrdSslgsiX509SignProxyReq().
#define kErrPX_SetPathDepth 7 |
Definition at line 62 of file XrdCryptosslgsiAux.hh.
Referenced by XrdSslgsiX509CreateProxy(), XrdSslgsiX509CreateProxyReq(), and XrdSslgsiX509SignProxyReq().
#define kErrPX_Signing 8 |
Definition at line 63 of file XrdCryptosslgsiAux.hh.
Referenced by XrdSslgsiX509CreateProxy(), XrdSslgsiX509CreateProxyReq(), and XrdSslgsiX509SignProxyReq().
bool XrdSslgsiProxyCertInfo | ( | const void * | ext, | |
int & | pathlen, | |||
bool * | haspolicy = 0 | |||
) |
Definition at line 338 of file XrdCryptosslgsiAux.cc.
References d2i_gsiProxyCertInfo(), gsiProxyCertInfo_OID, p, gsiProxyCertInfo_t::proxyCertPathLengthConstraint, gsiProxyCertInfo_t::proxyPolicy, and s.
Referenced by Display(), and XrdCryptosslgsiX509Chain::Verify().
void XrdSslgsiSetPathLenConstraint | ( | void * | ext, | |
int | pathlen | |||
) |
Definition at line 389 of file XrdCryptosslgsiAux.cc.
References d2i_gsiProxyCertInfo(), gsiProxyCertInfo_OID, p, gsiProxyCertInfo_t::proxyCertPathLengthConstraint, and s.
int XrdSslgsiX509CreateProxy | ( | const char * | , | |
const char * | , | |||
XrdProxyOpt_t * | , | |||
XrdCryptosslgsiX509Chain * | , | |||
XrdCryptoRSA ** | , | |||
const char * | ||||
) |
Definition at line 428 of file XrdCryptosslgsiAux.cc.
References XrdProxyOpt_t::bits, bits, DEBUG, XrdProxyOpt_t::depthlen, EPNAME, fc, fchmod(), fclose(), fopen, fp, XrdSutRndm::GetUInt(), gsiProxyCertInfo_new(), gsiProxyCertInfo_OID, i2d_gsiProxyCertInfo(), int, kErrPX_BadEECfile, kErrPX_BadEECkey, kErrPX_Error, kErrPX_ExpiredEEC, kErrPX_GenerateKey, kErrPX_NoResources, kErrPX_ProxyFile, kErrPX_SetAttribute, kErrPX_SetPathDepth, kErrPX_Signing, RooFitShortHand::L(), malloc(), OBJ_txt2obj_fix(), PRINT, gsiProxyCertInfo_t::proxyCertPathLengthConstraint, XrdCryptoX509Chain::PushBack(), sprintf(), XrdProxyOpt_t::valid, and XrdCryptosslASN1toUTC().
Referenced by XrdSecProtocolgsi::InitProxy(), and main().
int XrdSslgsiX509CreateProxyReq | ( | XrdCryptoX509 * | , | |
XrdCryptoX509Req ** | , | |||
XrdCryptoRSA ** | ||||
) |
Definition at line 777 of file XrdCryptosslgsiAux.cc.
References bits, d2i_gsiProxyCertInfo(), DEBUG, EPNAME, XrdSutRndm::GetUInt(), gsiProxyCertInfo_new(), gsiProxyCertInfo_OID, i, i2d_gsiProxyCertInfo(), XrdCryptoX509::IsValid(), kErrPX_Error, kErrPX_ExpiredEEC, kErrPX_GenerateKey, kErrPX_NoResources, kErrPX_SetAttribute, kErrPX_SetPathDepth, kErrPX_Signing, malloc(), OBJ_txt2obj_fix(), XrdCryptoX509::Opaque(), p, PRINT, gsiProxyCertInfo_t::proxyCertPathLengthConstraint, s, and sprintf().
Referenced by main(), and XrdSecProtocolgsi::ServerDoCert().
int XrdSslgsiX509SignProxyReq | ( | XrdCryptoX509 * | , | |
XrdCryptoRSA * | , | |||
XrdCryptoX509Req * | , | |||
XrdCryptoX509 ** | ||||
) |
Definition at line 991 of file XrdCryptosslgsiAux.cc.
References d2i_gsiProxyCertInfo(), DEBUG, EPNAME, XrdOucString::erase(), gsiProxyCertInfo_new(), gsiProxyCertInfo_OID, i, i2d_gsiProxyCertInfo(), int, XrdCryptoRSA::kComplete, kErrPX_BadEECkey, kErrPX_BadExtension, kErrPX_BadNames, kErrPX_Error, kErrPX_ExpiredEEC, kErrPX_NoResources, kErrPX_SetAttribute, kErrPX_SetPathDepth, kErrPX_Signing, RooFitShortHand::L(), XrdOucString::length(), malloc(), XrdCryptoX509::NotAfter(), OBJ_txt2obj_fix(), XrdCryptoX509::Opaque(), XrdCryptoX509Req::Opaque(), XrdCryptoRSA::Opaque(), p, PRINT, gsiProxyCertInfo_t::proxyCertPathLengthConstraint, XrdOucString::rfind(), s, XrdCryptoRSA::status, strtol(), and XrdCryptoX509Req::Version().
Referenced by XrdSecProtocolgsi::ClientDoPxyreq(), and main().