xrootd
|
#include <XrdCryptoX509.hh>
Public Types | |
enum | EX509Type { kUnknown = -1, kCA = 0, kEEC = 1, kProxy = 2 } |
Public Member Functions | |
XrdCryptoX509 () | |
virtual | ~XrdCryptoX509 () |
virtual bool | IsValid (int when=0) |
virtual bool | IsExpired (int when=0) |
virtual XrdCryptoX509data | Opaque () |
virtual XrdCryptoRSA * | PKI () |
virtual void | SetPKI (XrdCryptoX509data pki) |
virtual XrdSutBucket * | Export () |
virtual void | Dump () |
const char * | Type (EX509Type t=kUnknown) const |
virtual const char * | ParentFile () |
virtual int | BitStrength () |
virtual kXR_int64 | SerialNumber () |
virtual XrdOucString | SerialNumberString () |
virtual int | NotBefore () |
virtual int | NotAfter () |
virtual const char * | Issuer () |
virtual const char * | IssuerHash () |
virtual const char * | Subject () |
virtual const char * | SubjectHash () |
virtual XrdCryptoX509data | GetExtension (const char *oid) |
virtual bool | Verify (XrdCryptoX509 *ref) |
Public Attributes | |
EX509Type | type |
Static Private Attributes | |
static const char * | ctype [4] = { "Unknown", "CA", "EEC", "Proxy" } |
virtual XrdCryptoX509::~XrdCryptoX509 | ( | ) | [inline, virtual] |
int XrdCryptoX509::BitStrength | ( | ) | [virtual] |
void XrdCryptoX509::Dump | ( | ) | [virtual] |
References EPNAME, IsExpired(), Issuer(), IssuerHash(), localtime_r, NotAfter(), NotBefore(), ParentFile(), PKI(), PRINT, SerialNumber(), Subject(), SubjectHash(), and Type().
Referenced by main().
XrdSutBucket * XrdCryptoX509::Export | ( | ) | [virtual] |
Reimplemented in XrdCryptosslX509.
References ABSTRACTMETHOD.
Referenced by XrdSecProtocolgsi::ClientDoPxyreq(), and XrdSecProtocolgsi::Init().
XrdCryptoX509data XrdCryptoX509::GetExtension | ( | const char * | oid | ) | [virtual] |
Reimplemented in XrdCryptosslX509.
References ABSTRACTMETHOD.
Referenced by Display(), main(), XrdCryptosslgsiX509Chain::Verify(), and XrdCryptosslX509Crl::XrdCryptosslX509Crl().
bool XrdCryptoX509::IsExpired | ( | int | when = 0 | ) | [virtual] |
References NotAfter().
Referenced by Dump().
const char * XrdCryptoX509::Issuer | ( | ) | [virtual] |
Reimplemented in XrdCryptosslX509.
References ABSTRACTMETHOD.
Referenced by Display(), Dump(), XrdCryptoX509Chain::FindIssuer(), XrdSecProtocolgsi::LoadCRL(), XrdCryptoX509Chain::Reorder(), XrdCryptosslgsiX509Chain::SubjectOK(), XrdCryptosslX509ChainToFile(), and XrdCryptosslX509ExportChain().
const char * XrdCryptoX509::IssuerHash | ( | ) | [virtual] |
Reimplemented in XrdCryptosslX509.
References ABSTRACTMETHOD.
Referenced by XrdCryptoX509Chain::Dump(), Dump(), XrdSecProtocolgsi::getCredentials(), XrdSecProtocolgsi::Init(), XrdSecProtocolgsi::LoadCRL(), main(), XrdSecProtocolgsi::VerifyCA(), and XrdCryptosslX509ExportChain().
bool XrdCryptoX509::IsValid | ( | int | when = 0 | ) | [virtual] |
References kAllowedSkew, NotAfter(), and NotBefore().
Referenced by XrdCryptoX509Chain::CheckValidity(), XrdSecProtocolgsi::Init(), XrdCryptoX509Chain::Verify(), and XrdSslgsiX509CreateProxyReq().
int XrdCryptoX509::NotAfter | ( | ) | [virtual] |
Reimplemented in XrdCryptosslX509.
References ABSTRACTMETHOD.
Referenced by Display(), Dump(), XrdSecProtocolgsi::Init(), IsExpired(), IsValid(), main(), XrdSecProtocolgsi::QueryProxy(), and XrdSslgsiX509SignProxyReq().
int XrdCryptoX509::NotBefore | ( | ) | [virtual] |
XrdCryptoX509data XrdCryptoX509::Opaque | ( | ) | [virtual] |
Reimplemented in XrdCryptosslX509.
References ABSTRACTMETHOD.
Referenced by XrdCryptosslX509Crl::Verify(), XrdCryptosslX509::Verify(), XrdCryptosslFactory::X509(), XrdCryptosslX509ChainToFile(), XrdCryptosslX509ExportChain(), XrdCryptosslX509ParseBucket(), XrdCryptosslX509ParseFile(), XrdCryptosslX509VerifyCert(), XrdCryptosslX509VerifyChain(), XrdSslgsiX509CreateProxyReq(), and XrdSslgsiX509SignProxyReq().
const char * XrdCryptoX509::ParentFile | ( | ) | [virtual] |
XrdCryptoRSA * XrdCryptoX509::PKI | ( | ) | [virtual] |
Reimplemented in XrdCryptosslX509.
References ABSTRACTMETHOD.
Referenced by XrdSecProtocolgsi::ClientDoCert(), XrdSecProtocolgsi::ClientDoPxyreq(), Dump(), XrdSecProtocolgsi::Init(), main(), XrdSecProtocolgsi::QueryProxy(), XrdSecProtocolgsi::ServerDoCert(), XrdSecProtocolgsi::ServerDoSigpxy(), XrdCryptosslX509ChainToFile(), XrdCryptosslX509ExportChain(), XrdCryptosslX509ParseBucket(), and XrdCryptosslX509ParseFile().
kXR_int64 XrdCryptoX509::SerialNumber | ( | ) | [virtual] |
XrdOucString XrdCryptoX509::SerialNumberString | ( | ) | [virtual] |
Reimplemented in XrdCryptosslX509.
References ABSTRACTMETHOD.
Referenced by XrdCryptoX509Chain::Verify().
void XrdCryptoX509::SetPKI | ( | XrdCryptoX509data | pki | ) | [virtual] |
Reimplemented in XrdCryptosslX509.
References ABSTRACTMETHOD.
Referenced by main(), XrdSecProtocolgsi::ServerDoSigpxy(), XrdCryptosslX509ParseBucket(), and XrdCryptosslX509ParseFile().
const char * XrdCryptoX509::Subject | ( | ) | [virtual] |
Reimplemented in XrdCryptosslX509.
References ABSTRACTMETHOD.
Referenced by XrdCryptoX509Chain::CheckCA(), XrdSecProtocolgsi::ClientDoCert(), Display(), Dump(), XrdCryptoX509Chain::EECname(), XrdCryptoX509Chain::FindSubject(), XrdSecProtocolgsi::LoadCRL(), XrdCryptoX509Chain::Reorder(), XrdCryptosslgsiX509Chain::SubjectOK(), XrdCryptosslX509ExportChain(), and XrdCryptoX509Chain::XrdCryptoX509Chain().
const char * XrdCryptoX509::SubjectHash | ( | ) | [virtual] |
Reimplemented in XrdCryptosslX509.
References ABSTRACTMETHOD.
Referenced by XrdCryptoX509Chain::CheckCA(), XrdCryptoX509Chain::Dump(), Dump(), XrdCryptoX509Chain::EEChash(), XrdSecProtocolgsi::getCredentials(), XrdSecProtocolgsi::LoadCADir(), XrdSecProtocolgsi::LoadCRL(), XrdSecProtocolgsi::ServerDoSigpxy(), XrdSecProtocolgsi::VerifyCA(), XrdCryptosslX509Crl::XrdCryptosslX509Crl(), XrdCryptosslX509ExportChain(), and XrdCryptoX509Chain::XrdCryptoX509Chain().
const char* XrdCryptoX509::Type | ( | EX509Type | t = kUnknown | ) | const [inline] |
References ctype, kUnknown, and type.
Referenced by XrdCryptoX509Chain::Dump(), Dump(), XrdSecProtocolgsi::Init(), and XrdCryptosslgsiX509Chain::Verify().
bool XrdCryptoX509::Verify | ( | XrdCryptoX509 * | ref | ) | [virtual] |
Reimplemented in XrdCryptosslX509.
References ABSTRACTMETHOD.
Referenced by main(), and XrdCryptoX509Chain::Verify().
const char * XrdCryptoX509::ctype = { "Unknown", "CA", "EEC", "Proxy" } [static, private] |
Referenced by Type().
Referenced by XrdCryptoX509Chain::CheckCA(), XrdCryptoX509Chain::Cleanup(), XrdCryptoX509Chain::EEChash(), XrdCryptoX509Chain::EECname(), XrdSecProtocolgsi::getCredentials(), XrdSecProtocolgsi::Init(), XrdCryptoX509Chain::Remove(), XrdCryptosslgsiX509Chain::SubjectOK(), Type(), XrdCryptoX509Chain::Verify(), XrdCryptosslX509::XrdCryptosslX509(), XrdCryptosslX509ChainToFile(), XrdCryptosslX509Crl::XrdCryptosslX509Crl(), XrdCryptosslX509ExportChain(), XrdCryptosslX509ParseBucket(), XrdCryptosslX509ParseFile(), XrdCryptosslX509VerifyChain(), XrdCryptoX509(), and XrdCryptoX509Chain::XrdCryptoX509Chain().