|
xrootd
|
#include <XrdCrypto/XrdCryptosslgsiX509Chain.hh>#include <XrdCrypto/XrdCryptoX509Req.hh>#include <XrdCrypto/XrdCryptoRSA.hh>#include <XrdOuc/XrdOucString.hh>

Go to the source code of this file.
| #define gsiProxyCertInfo_OID "1.3.6.1.4.1.3536.1.222" |
| #define kErrPX_BadEECfile 2 |
Referenced by XrdSslgsiX509CreateProxy().
| #define kErrPX_BadEECkey 3 |
Referenced by XrdSslgsiX509CreateProxy(), and XrdSslgsiX509SignProxyReq().
| #define kErrPX_BadExtension 13 |
Referenced by XrdSslgsiX509SignProxyReq().
| #define kErrPX_BadNames 11 |
Referenced by XrdSslgsiX509SignProxyReq().
| #define kErrPX_BadSerial 12 |
| #define kErrPX_Error 1 |
Referenced by XrdSslgsiX509CreateProxy(), XrdSslgsiX509CreateProxyReq(), and XrdSslgsiX509SignProxyReq().
| #define kErrPX_ExpiredEEC 4 |
Referenced by XrdSslgsiX509CreateProxy(), XrdSslgsiX509CreateProxyReq(), and XrdSslgsiX509SignProxyReq().
| #define kErrPX_GenerateKey 9 |
Referenced by XrdSslgsiX509CreateProxy(), and XrdSslgsiX509CreateProxyReq().
| #define kErrPX_NoResources 5 |
Referenced by XrdSslgsiX509CreateProxy(), XrdSslgsiX509CreateProxyReq(), and XrdSslgsiX509SignProxyReq().
| #define kErrPX_ProxyFile 10 |
Referenced by XrdSslgsiX509CreateProxy().
| #define kErrPX_SetAttribute 6 |
Referenced by XrdSslgsiX509CreateProxy(), XrdSslgsiX509CreateProxyReq(), and XrdSslgsiX509SignProxyReq().
| #define kErrPX_SetPathDepth 7 |
Referenced by XrdSslgsiX509CreateProxy(), XrdSslgsiX509CreateProxyReq(), and XrdSslgsiX509SignProxyReq().
| #define kErrPX_Signing 8 |
Referenced by XrdSslgsiX509CreateProxy(), XrdSslgsiX509CreateProxyReq(), and XrdSslgsiX509SignProxyReq().
| bool XrdSslgsiProxyCertInfo | ( | const void * | ext, |
| int & | pathlen, | ||
| bool * | haspolicy = 0 |
||
| ) |
References gsiProxyCertInfo_OID, d2i_gsiProxyCertInfo(), XRDGSI_CONST, gsiProxyCertInfo_t::proxyCertPathLengthConstraint, and gsiProxyCertInfo_t::proxyPolicy.
Referenced by XrdCryptosslgsiX509Chain::Verify(), and Display().
| void XrdSslgsiSetPathLenConstraint | ( | void * | ext, |
| int | pathlen | ||
| ) |
| int XrdSslgsiX509CreateProxy | ( | const char * | , |
| const char * | , | ||
| XrdProxyOpt_t * | , | ||
| XrdCryptosslgsiX509Chain * | , | ||
| XrdCryptoRSA ** | , | ||
| const char * | |||
| ) |
References EPNAME, PRINT, XrdProxyOpt_t::bits, XrdProxyOpt_t::valid, XrdProxyOpt_t::depthlen, fopen, DEBUG, fclose(), kErrPX_BadEECfile, XrdCryptosslASN1toUTC(), kErrPX_ExpiredEEC, kErrPX_BadEECkey, kErrPX_NoResources, kErrPX_GenerateKey, XrdSutRndm::GetUInt(), kErrPX_SetAttribute, gsiProxyCertInfo_new(), gsiProxyCertInfo_t::proxyCertPathLengthConstraint, kErrPX_SetPathDepth, gsiProxyCertInfo_OID, OBJ_txt2obj_fix(), i2d_gsiProxyCertInfo(), kErrPX_Error, kErrPX_Signing, XrdCryptoX509Chain::PushBack(), and kErrPX_ProxyFile.
Referenced by main(), and XrdSecProtocolgsi::InitProxy().
| int XrdSslgsiX509CreateProxyReq | ( | XrdCryptoX509 * | , |
| XrdCryptoX509Req ** | , | ||
| XrdCryptoRSA ** | |||
| ) |
References EPNAME, XrdCryptoX509::Opaque(), PRINT, XrdCryptoX509::IsValid(), kErrPX_ExpiredEEC, kErrPX_NoResources, kErrPX_GenerateKey, XrdSutRndm::GetUInt(), DEBUG, kErrPX_SetAttribute, gsiProxyCertInfo_new(), gsiProxyCertInfo_OID, d2i_gsiProxyCertInfo(), XRDGSI_CONST, gsiProxyCertInfo_t::proxyCertPathLengthConstraint, kErrPX_SetPathDepth, i2d_gsiProxyCertInfo(), kErrPX_Error, OBJ_txt2obj_fix(), and kErrPX_Signing.
Referenced by main(), and XrdSecProtocolgsi::ServerDoCert().
| int XrdSslgsiX509DumpExtensions | ( | XrdCryptoX509 * | ) |
References EPNAME, PRINT, XrdCryptoX509::Opaque(), XRDGSI_CONST, and XrdSslgsiX509FillUnknownExt().
| int XrdSslgsiX509GetVOMSAttr | ( | XrdCryptoX509 * | , |
| XrdOucString & | |||
| ) |
References EPNAME, PRINT, XrdCryptoX509::Opaque(), DEBUG, XRDGSI_VOMS_ACSEQ_OID, XRDGSI_CONST, and XrdSslgsiX509FillVOMS().
Referenced by Display(), and XrdSecProtocolgsi::ExtractVOMS().
| int XrdSslgsiX509SignProxyReq | ( | XrdCryptoX509 * | , |
| XrdCryptoRSA * | , | ||
| XrdCryptoX509Req * | , | ||
| XrdCryptoX509 ** | |||
| ) |
References EPNAME, PRINT, XrdCryptoX509::NotAfter(), kErrPX_ExpiredEEC, XrdCryptoX509::Opaque(), XrdCryptoRSA::status, XrdCryptoRSA::kComplete, kErrPX_BadEECkey, XrdCryptoRSA::Opaque(), kErrPX_NoResources, XrdCryptoX509Req::Opaque(), XrdOucString::length(), kErrPX_BadNames, XrdOucString::rfind(), XrdCryptoX509Req::Version(), XrdOucString::erase(), kErrPX_SetAttribute, gsiProxyCertInfo_OID, d2i_gsiProxyCertInfo(), XRDGSI_CONST, gsiProxyCertInfo_t::proxyCertPathLengthConstraint, DEBUG, kErrPX_BadExtension, gsiProxyCertInfo_new(), kErrPX_SetPathDepth, i2d_gsiProxyCertInfo(), kErrPX_Error, OBJ_txt2obj_fix(), and kErrPX_Signing.
Referenced by main(), and XrdSecProtocolgsi::ClientDoPxyreq().
1.7.5