xrootd
|
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <openssl/asn1.h>
#include <openssl/asn1_mac.h>
#include <openssl/err.h>
#include <openssl/evp.h>
#include <openssl/pem.h>
#include <openssl/rsa.h>
#include <openssl/x509v3.h>
#include <XrdSut/XrdSutRndm.hh>
#include <XrdCrypto/XrdCryptosslgsiAux.hh>
#include <XrdCrypto/XrdCryptoTrace.hh>
#include <XrdCrypto/XrdCryptosslAux.hh>
#include <XrdCrypto/XrdCryptosslRSA.hh>
#include <XrdCrypto/XrdCryptosslX509.hh>
#include <XrdCrypto/XrdCryptosslX509Req.hh>
#define ASN1_F_D2I_GSIPROXYCERTINFO 501 |
Referenced by d2i_gsiProxyCertInfo().
#define ASN1_F_D2I_GSIPROXYPOLICY 511 |
Referenced by d2i_gsiProxyPolicy().
#define ASN1_F_GSIPROXYCERTINFO_NEW 500 |
Referenced by gsiProxyCertInfo_new().
#define ASN1_F_GSIPROXYPOLICY_NEW 510 |
Referenced by gsiProxyPolicy_new().
gsiProxyCertInfo_t* d2i_gsiProxyCertInfo | ( | gsiProxyCertInfo_t ** | pci, |
unsigned char ** | pp, | ||
long | length | ||
) |
gsiProxyPolicy_t* d2i_gsiProxyPolicy | ( | gsiProxyPolicy_t ** | pol, |
unsigned char ** | pp, | ||
long | length | ||
) |
References ASN1_F_D2I_GSIPROXYPOLICY, gsiProxyPolicy_free(), and gsiProxyPolicy_new().
Referenced by d2i_gsiProxyCertInfo().
void gsiProxyCertInfo_free | ( | gsiProxyCertInfo_t * | pci | ) |
References gsiProxyCertInfo_t::proxyCertPathLengthConstraint.
Referenced by d2i_gsiProxyCertInfo().
gsiProxyCertInfo_t* gsiProxyCertInfo_new | ( | ) |
void gsiProxyPolicy_free | ( | gsiProxyPolicy_t * | pol | ) |
References gsiProxyPolicy_t::policy, and gsiProxyPolicy_t::policyLanguage.
Referenced by d2i_gsiProxyPolicy().
gsiProxyPolicy_t* gsiProxyPolicy_new | ( | ) |
References ASN1_F_GSIPROXYPOLICY_NEW, OBJ_txt2obj_fix(), gsiProxyPolicy_t::policy, and gsiProxyPolicy_t::policyLanguage.
Referenced by d2i_gsiProxyPolicy(), and gsiProxyCertInfo_new().
int i2d_gsiProxyCertInfo | ( | gsiProxyCertInfo_t * | pci, |
unsigned char ** | pp | ||
) |
int i2d_gsiProxyPolicy | ( | gsiProxyPolicy_t * | pol, |
unsigned char ** | pp | ||
) |
References gsiProxyPolicy_t::policy, and gsiProxyPolicy_t::policyLanguage.
Referenced by i2d_gsiProxyCertInfo().
static ASN1_OBJECT* OBJ_txt2obj_fix | ( | const char * | s, |
int | no_name | ||
) | [static] |
bool XrdSslgsiProxyCertInfo | ( | const void * | extdata, |
int & | pathlen, | ||
bool * | haspolicy | ||
) |
References d2i_gsiProxyCertInfo(), gsiProxyCertInfo_OID, gsiProxyCertInfo_t::proxyCertPathLengthConstraint, and gsiProxyCertInfo_t::proxyPolicy.
Referenced by Display(), and XrdCryptosslgsiX509Chain::Verify().
void XrdSslgsiSetPathLenConstraint | ( | void * | extdata, |
int | pathlen | ||
) |
int XrdSslgsiX509CreateProxy | ( | const char * | fnc, |
const char * | fnk, | ||
XrdProxyOpt_t * | pxopt, | ||
XrdCryptosslgsiX509Chain * | xp, | ||
XrdCryptoRSA ** | kp, | ||
const char * | fnp | ||
) |
References XrdProxyOpt_t::bits, DEBUG, XrdProxyOpt_t::depthlen, EPNAME, fclose(), fopen, XrdSutRndm::GetUInt(), gsiProxyCertInfo_new(), gsiProxyCertInfo_OID, i2d_gsiProxyCertInfo(), kErrPX_BadEECfile, kErrPX_BadEECkey, kErrPX_Error, kErrPX_ExpiredEEC, kErrPX_GenerateKey, kErrPX_NoResources, kErrPX_ProxyFile, kErrPX_SetAttribute, kErrPX_SetPathDepth, kErrPX_Signing, OBJ_txt2obj_fix(), PRINT, gsiProxyCertInfo_t::proxyCertPathLengthConstraint, XrdCryptoX509Chain::PushBack(), XrdProxyOpt_t::valid, and XrdCryptosslASN1toUTC().
Referenced by XrdSecProtocolgsi::InitProxy(), and main().
int XrdSslgsiX509CreateProxyReq | ( | XrdCryptoX509 * | xcpi, |
XrdCryptoX509Req ** | xcro, | ||
XrdCryptoRSA ** | kcro | ||
) |
References d2i_gsiProxyCertInfo(), DEBUG, EPNAME, XrdSutRndm::GetUInt(), gsiProxyCertInfo_new(), gsiProxyCertInfo_OID, i2d_gsiProxyCertInfo(), XrdCryptoX509::IsValid(), kErrPX_Error, kErrPX_ExpiredEEC, kErrPX_GenerateKey, kErrPX_NoResources, kErrPX_SetAttribute, kErrPX_SetPathDepth, kErrPX_Signing, OBJ_txt2obj_fix(), XrdCryptoX509::Opaque(), PRINT, and gsiProxyCertInfo_t::proxyCertPathLengthConstraint.
Referenced by main(), and XrdSecProtocolgsi::ServerDoCert().
int XrdSslgsiX509SignProxyReq | ( | XrdCryptoX509 * | xcpi, |
XrdCryptoRSA * | kcpi, | ||
XrdCryptoX509Req * | xcri, | ||
XrdCryptoX509 ** | xcpo | ||
) |
References d2i_gsiProxyCertInfo(), DEBUG, EPNAME, XrdOucString::erase(), gsiProxyCertInfo_new(), gsiProxyCertInfo_OID, i2d_gsiProxyCertInfo(), XrdCryptoRSA::kComplete, kErrPX_BadEECkey, kErrPX_BadExtension, kErrPX_BadNames, kErrPX_Error, kErrPX_ExpiredEEC, kErrPX_NoResources, kErrPX_SetAttribute, kErrPX_SetPathDepth, kErrPX_Signing, XrdOucString::length(), XrdCryptoX509::NotAfter(), OBJ_txt2obj_fix(), XrdCryptoX509Req::Opaque(), XrdCryptoRSA::Opaque(), XrdCryptoX509::Opaque(), PRINT, gsiProxyCertInfo_t::proxyCertPathLengthConstraint, XrdOucString::rfind(), XrdCryptoRSA::status, and XrdCryptoX509Req::Version().
Referenced by XrdSecProtocolgsi::ClientDoPxyreq(), and main().
const char* XrdCryptosslgsiAuxCVSID = "$Id$" |