![]() |
XRootD
|
#include "XrdCrypto/XrdCryptoAux.hh"
#include "XrdCrypto/XrdCryptoFactory.hh"
#include "XrdCrypto/XrdCryptoX509Chain.hh"
#include <openssl/asn1.h>
Go to the source code of this file.
Macros | |
#define | kErrPX_BadEECfile 2 |
#define | kErrPX_BadEECkey 3 |
#define | kErrPX_BadExtension 13 |
#define | kErrPX_BadNames 11 |
#define | kErrPX_BadSerial 12 |
#define | kErrPX_Error 1 |
#define | kErrPX_ExpiredEEC 4 |
#define | kErrPX_GenerateKey 9 |
#define | kErrPX_NoResources 5 |
#define | kErrPX_ProxyFile 10 |
#define | kErrPX_SetAttribute 6 |
#define | kErrPX_SetPathDepth 7 |
#define | kErrPX_Signing 8 |
#define | kSslKDFunDefLen 24 |
#define | sslTRACE_ALL 0x0007 |
#define | sslTRACE_Debug 0x0002 |
#define | sslTRACE_Dump 0x0004 |
#define | sslTRACE_Notify 0x0001 |
#define kErrPX_BadEECfile 2 |
Definition at line 112 of file XrdCryptosslAux.hh.
#define kErrPX_BadEECkey 3 |
Definition at line 113 of file XrdCryptosslAux.hh.
#define kErrPX_BadExtension 13 |
Definition at line 123 of file XrdCryptosslAux.hh.
#define kErrPX_BadNames 11 |
Definition at line 121 of file XrdCryptosslAux.hh.
#define kErrPX_BadSerial 12 |
Definition at line 122 of file XrdCryptosslAux.hh.
#define kErrPX_Error 1 |
Definition at line 111 of file XrdCryptosslAux.hh.
#define kErrPX_ExpiredEEC 4 |
Definition at line 114 of file XrdCryptosslAux.hh.
#define kErrPX_GenerateKey 9 |
Definition at line 119 of file XrdCryptosslAux.hh.
#define kErrPX_NoResources 5 |
Definition at line 115 of file XrdCryptosslAux.hh.
#define kErrPX_ProxyFile 10 |
Definition at line 120 of file XrdCryptosslAux.hh.
#define kErrPX_SetAttribute 6 |
Definition at line 116 of file XrdCryptosslAux.hh.
#define kErrPX_SetPathDepth 7 |
Definition at line 117 of file XrdCryptosslAux.hh.
#define kErrPX_Signing 8 |
Definition at line 118 of file XrdCryptosslAux.hh.
#define kSslKDFunDefLen 24 |
Definition at line 42 of file XrdCryptosslAux.hh.
#define sslTRACE_ALL 0x0007 |
Definition at line 103 of file XrdCryptosslAux.hh.
#define sslTRACE_Debug 0x0002 |
Definition at line 105 of file XrdCryptosslAux.hh.
#define sslTRACE_Dump 0x0004 |
Definition at line 104 of file XrdCryptosslAux.hh.
#define sslTRACE_Notify 0x0001 |
Definition at line 106 of file XrdCryptosslAux.hh.
time_t XrdCryptosslASN1toUTC | ( | const ASN1_TIME * | tsn1 | ) |
Definition at line 683 of file XrdCryptosslAux.cc.
References XrdCryptoTZCorr().
Referenced by XrdCryptosslX509Crl::LastUpdate(), XrdCryptosslX509Crl::NextUpdate(), XrdCryptosslX509::NotAfter(), and XrdCryptosslX509::NotBefore().
int XrdCryptosslKDFun | ( | const char * | pass, |
int | plen, | ||
const char * | salt, | ||
int | slen, | ||
char * | key, | ||
int | len | ||
) |
Definition at line 78 of file XrdCryptosslAux.cc.
Referenced by XrdCryptosslFactory::KDFun().
int XrdCryptosslKDFunLen | ( | ) |
Definition at line 71 of file XrdCryptosslAux.cc.
References kSslKDFunDefLen.
Referenced by XrdCryptosslFactory::KDFunLen().
void XrdCryptosslNameOneLine | ( | X509_NAME * | nm, |
XrdOucString & | s | ||
) |
Definition at line 744 of file XrdCryptosslAux.cc.
References XrdOucString::insert(), and XrdOucString::replace().
Referenced by XrdCryptosslX509::Issuer(), XrdCryptosslX509Crl::Issuer(), XrdCryptosslX509::Subject(), and XrdCryptosslX509Req::Subject().
bool XrdCryptosslProxyCertInfo | ( | const void * | ext, |
int & | pathlen, | ||
bool * | haspolicy = 0 |
||
) |
void XrdCryptosslSetPathLenConstraint | ( | void * | ext, |
int | pathlen | ||
) |
Referenced by XrdCryptosslFactory::SetPathLenConstraint().
int XrdCryptosslX509ChainToFile | ( | XrdCryptoX509Chain * | c, |
const char * | fn | ||
) |
Definition at line 311 of file XrdCryptosslAux.cc.
References DEBUG, XrdCryptoX509Chain::End(), EPNAME, fclose(), fopen, XrdCryptoX509::Issuer(), XrdSutFileLocker::IsValid(), XrdCryptoX509::kCA, XrdCryptoRSA::kComplete, XrdSutFileLocker::kExcl, XrdCryptoRSA::Opaque(), XrdCryptoX509::Opaque(), XrdCryptoX509::PKI(), XrdCryptoX509Chain::Reorder(), XrdCryptoX509Chain::SearchBySubject(), XrdCryptoRSA::status, and XrdCryptoX509::type.
Referenced by XrdCryptosslFactory::X509ChainToFile().
int XrdCryptosslX509CheckProxy3 | ( | XrdCryptoX509 * | , |
XrdOucString & | |||
) |
int XrdCryptosslX509CreateProxy | ( | const char * | , |
const char * | , | ||
XrdProxyOpt_t * | , | ||
XrdCryptogsiX509Chain * | , | ||
XrdCryptoRSA ** | , | ||
const char * | |||
) |
int XrdCryptosslX509CreateProxyReq | ( | XrdCryptoX509 * | , |
XrdCryptoX509Req ** | , | ||
XrdCryptoRSA ** | |||
) |
Referenced by XrdCryptosslFactory::X509CreateProxyReq().
XrdSutBucket* XrdCryptosslX509ExportChain | ( | XrdCryptoX509Chain * | c, |
bool | key = 0 |
||
) |
Definition at line 198 of file XrdCryptosslAux.cc.
References XrdCryptoX509Chain::Begin(), DEBUG, XrdCryptoX509Chain::End(), EPNAME, XrdCryptoX509::Issuer(), XrdCryptoX509::IssuerHash(), XrdCryptoX509::kCA, XrdCryptoRSA::kComplete, kXRS_x509, XrdCryptoRSA::Opaque(), XrdCryptoX509::Opaque(), XrdCryptoX509::PKI(), XrdCryptoX509Chain::Reorder(), XrdCryptoX509Chain::SearchBySubject(), XrdSutBucket::SetBuf(), XrdCryptoX509Chain::Size(), XrdSutBucket::size, XrdCryptoRSA::status, XrdCryptoX509::Subject(), XrdCryptoX509::SubjectHash(), and XrdCryptoX509::type.
Referenced by XrdCryptosslFactory::X509ExportChain().
int XrdCryptosslX509GetVOMSAttr | ( | XrdCryptoX509 * | , |
XrdOucString & | |||
) |
int XrdCryptosslX509ParseBucket | ( | XrdSutBucket * | b, |
XrdCryptoX509Chain * | c | ||
) |
Definition at line 575 of file XrdCryptosslAux.cc.
References XrdCryptoX509Chain::Begin(), XrdSutBucket::buffer, DEBUG, EPNAME, XrdCryptoX509::kCA, XrdCryptoRSA::kComplete, XrdCryptoX509Chain::Next(), XrdCryptoX509::Opaque(), XrdCryptoX509::PKI(), XrdCryptoX509Chain::PushBack(), XrdCryptoX509::SetPKI(), XrdCryptoX509Chain::Size(), XrdSutBucket::size, XrdCryptoRSA::status, and XrdCryptoX509::type.
Referenced by XrdCryptosslFactory::X509ParseBucket(), and XrdSecgsiAuthzKey().
int XrdCryptosslX509ParseFile | ( | const char * | fname, |
XrdCryptoX509Chain * | c, | ||
const char * | fkey = 0 |
||
) |
Definition at line 444 of file XrdCryptosslAux.cc.
References DEBUG, EPNAME, fclose(), and fopen.
Referenced by XrdCryptosslFactory::X509ParseFile().
int XrdCryptosslX509ParseFile | ( | FILE * | file, |
XrdCryptoX509Chain * | c, | ||
const char * | fname, | ||
const char * | fkey = 0 |
||
) |
Definition at line 464 of file XrdCryptosslAux.cc.
References XrdCryptoX509Chain::Begin(), DEBUG, EPNAME, fclose(), fopen, XrdCryptoX509::kCA, XrdCryptoRSA::kComplete, XrdCryptoX509Chain::Next(), XrdCryptoX509::Opaque(), XrdCryptoX509::PKI(), XrdCryptoX509Chain::PushBack(), XrdCryptoX509::SetPKI(), XrdCryptoX509Chain::Size(), XrdCryptoRSA::status, XrdCryptoX509::Subject(), and XrdCryptoX509::type.
int XrdCryptosslX509ParseStack | ( | XrdTlsPeerCerts * | pc, |
XrdCryptoX509Chain * | chain | ||
) |
Definition at line 391 of file XrdCryptosslAux.cc.
References DEBUG, EPNAME, XrdTlsPeerCerts::getCert(), XrdTlsPeerCerts::hasCert(), XrdTlsPeerCerts::hasChain(), XrdCryptoX509Chain::PushBack(), and XrdCryptoX509Chain::Reorder().
Referenced by XrdCryptosslFactory::X509ParseStack().
int XrdCryptosslX509SignProxyReq | ( | XrdCryptoX509 * | , |
XrdCryptoRSA * | , | ||
XrdCryptoX509Req * | , | ||
XrdCryptoX509 ** | |||
) |
int XrdCryptosslX509ToFile | ( | XrdCryptoX509 * | x509, |
FILE * | file, | ||
const char * | fname | ||
) |
Definition at line 291 of file XrdCryptosslAux.cc.
References DEBUG, EPNAME, and XrdCryptoX509::Opaque().
bool XrdCryptosslX509VerifyCert | ( | XrdCryptoX509 * | c, |
XrdCryptoX509 * | r | ||
) |
Definition at line 114 of file XrdCryptosslAux.cc.
References XrdCryptoX509::Opaque().
Referenced by XrdCryptosslFactory::X509VerifyCert().
bool XrdCryptosslX509VerifyChain | ( | XrdCryptoX509Chain * | chain, |
int & | errcode | ||
) |
Definition at line 129 of file XrdCryptosslAux.cc.
References XrdCryptoX509Chain::Begin(), gErrVerifyChain, XrdCryptoX509::kCA, XrdCryptoX509Chain::Next(), XrdCryptoX509::Opaque(), XrdCryptoX509Chain::Size(), and XrdCryptoX509::type.
Referenced by XrdCryptosslFactory::X509VerifyChain().