xrootd
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | List of all members
XrdCryptoX509Chain Class Reference

#include <XrdCryptoX509Chain.hh>

Inheritance diagram for XrdCryptoX509Chain:
Inheritance graph
[legend]
Collaboration diagram for XrdCryptoX509Chain:
Collaboration graph
[legend]

Public Types

enum  ECAStatus { kUnknown = 0 , kAbsent , kInvalid , kValid }
 
enum  EX509ChainErr {
  kNone = 0 , kInconsistent , kTooMany , kNoCA ,
  kNoCertificate , kInvalidType , kInvalidNames , kRevoked ,
  kExpired , kMissingExtension , kVerifyFail , kInvalidSign ,
  kCANotAutoSigned , kNoEEC , kTooManyEEC , kInvalidProxy
}
 

Public Member Functions

 XrdCryptoX509Chain (XrdCryptoX509 *c=0)
 
 XrdCryptoX509Chain (XrdCryptoX509Chain *ch)
 
virtual ~XrdCryptoX509Chain ()
 
const char * X509ChainError (EX509ChainErr e)
 
const char * LastError () const
 
void Dump ()
 
int Size () const
 
XrdCryptoX509End () const
 
ECAStatus StatusCA () const
 
const char * CAname ()
 
const char * EECname ()
 
const char * CAhash ()
 
const char * EEChash ()
 
XrdCryptoX509EffCA () const
 
void InsertAfter (XrdCryptoX509 *c, XrdCryptoX509 *cp)
 
void PutInFront (XrdCryptoX509 *c)
 
void PushBack (XrdCryptoX509 *c)
 
void Remove (XrdCryptoX509 *c)
 
bool CheckCA (bool checkselfsigned=1)
 
void Cleanup (bool keepCA=0)
 
void SetStatusCA (ECAStatus st)
 
XrdCryptoX509SearchByIssuer (const char *issuer, ESearchMode mode=kExact)
 
XrdCryptoX509SearchBySubject (const char *subject, ESearchMode mode=kExact)
 
virtual int CheckValidity (bool outatfirst=1, int when=0)
 
virtual int Reorder ()
 
virtual bool Verify (EX509ChainErr &e, x509ChainVerifyOpt_t *vopt=0)
 
XrdCryptoX509Begin ()
 
XrdCryptoX509Next ()
 

Protected Member Functions

XrdCryptoX509ChainNodeFind (XrdCryptoX509 *c)
 
XrdCryptoX509ChainNodeFindIssuer (const char *issuer, ESearchMode mode=kExact, XrdCryptoX509ChainNode **p=0)
 
XrdCryptoX509ChainNodeFindSubject (const char *subject, ESearchMode mode=kExact, XrdCryptoX509ChainNode **p=0)
 
void SetEffectiveCA ()
 
bool Verify (EX509ChainErr &e, const char *msg, XrdCryptoX509::EX509Type type, int when, XrdCryptoX509 *xcer, XrdCryptoX509 *xsig, XrdCryptoX509Crl *crl=0)
 

Protected Attributes

XrdCryptoX509ChainNodebegin
 
XrdCryptoX509ChainNodecurrent
 
XrdCryptoX509ChainNodeend
 
XrdCryptoX509ChainNodeprevious
 
XrdCryptoX509ChainNodeeffca
 
int size
 
XrdOucString lastError
 
XrdOucString caname
 
XrdOucString eecname
 
XrdOucString cahash
 
XrdOucString eechash
 
ECAStatus statusCA
 

Private Types

enum  ESearchMode { kExact = 0 , kBegin = 1 , kEnd = 2 }
 

Member Enumeration Documentation

◆ ECAStatus

Enumerator
kUnknown 
kAbsent 
kInvalid 
kValid 

◆ ESearchMode

Enumerator
kExact 
kBegin 
kEnd 

◆ EX509ChainErr

Enumerator
kNone 
kInconsistent 
kTooMany 
kNoCA 
kNoCertificate 
kInvalidType 
kInvalidNames 
kRevoked 
kExpired 
kMissingExtension 
kVerifyFail 
kInvalidSign 
kCANotAutoSigned 
kNoEEC 
kTooManyEEC 
kInvalidProxy 

Constructor & Destructor Documentation

◆ XrdCryptoX509Chain() [1/2]

XrdCryptoX509Chain::XrdCryptoX509Chain ( XrdCryptoX509 c = 0)

◆ XrdCryptoX509Chain() [2/2]

XrdCryptoX509Chain::XrdCryptoX509Chain ( XrdCryptoX509Chain ch)

◆ ~XrdCryptoX509Chain()

virtual XrdCryptoX509Chain::~XrdCryptoX509Chain ( )
virtual

Member Function Documentation

◆ Begin()

XrdCryptoX509 * XrdCryptoX509Chain::Begin ( )

◆ CAhash()

const char * XrdCryptoX509Chain::CAhash ( )

◆ CAname()

const char * XrdCryptoX509Chain::CAname ( )

◆ CheckCA()

bool XrdCryptoX509Chain::CheckCA ( bool  checkselfsigned = 1)

◆ CheckValidity()

virtual int XrdCryptoX509Chain::CheckValidity ( bool  outatfirst = 1,
int  when = 0 
)
virtual

◆ Cleanup()

void XrdCryptoX509Chain::Cleanup ( bool  keepCA = 0)

Referenced by gsiHSVars::~gsiHSVars().

◆ Dump()

void XrdCryptoX509Chain::Dump ( )

◆ EEChash()

const char * XrdCryptoX509Chain::EEChash ( )

◆ EECname()

const char * XrdCryptoX509Chain::EECname ( )

◆ EffCA()

XrdCryptoX509 * XrdCryptoX509Chain::EffCA ( ) const
inline

◆ End()

XrdCryptoX509 * XrdCryptoX509Chain::End ( ) const
inline

◆ Find()

XrdCryptoX509ChainNode * XrdCryptoX509Chain::Find ( XrdCryptoX509 c)
protected

◆ FindIssuer()

XrdCryptoX509ChainNode * XrdCryptoX509Chain::FindIssuer ( const char *  issuer,
ESearchMode  mode = kExact,
XrdCryptoX509ChainNode **  p = 0 
)
protected

◆ FindSubject()

XrdCryptoX509ChainNode * XrdCryptoX509Chain::FindSubject ( const char *  subject,
ESearchMode  mode = kExact,
XrdCryptoX509ChainNode **  p = 0 
)
protected

◆ InsertAfter()

void XrdCryptoX509Chain::InsertAfter ( XrdCryptoX509 c,
XrdCryptoX509 cp 
)

◆ LastError()

const char * XrdCryptoX509Chain::LastError ( ) const
inline

References XrdOucString::c_str(), and lastError.

◆ Next()

XrdCryptoX509 * XrdCryptoX509Chain::Next ( )

◆ PushBack()

void XrdCryptoX509Chain::PushBack ( XrdCryptoX509 c)

◆ PutInFront()

void XrdCryptoX509Chain::PutInFront ( XrdCryptoX509 c)

◆ Remove()

void XrdCryptoX509Chain::Remove ( XrdCryptoX509 c)

◆ Reorder()

virtual int XrdCryptoX509Chain::Reorder ( )
virtual

◆ SearchByIssuer()

XrdCryptoX509 * XrdCryptoX509Chain::SearchByIssuer ( const char *  issuer,
ESearchMode  mode = kExact 
)

◆ SearchBySubject()

XrdCryptoX509 * XrdCryptoX509Chain::SearchBySubject ( const char *  subject,
ESearchMode  mode = kExact 
)

◆ SetEffectiveCA()

void XrdCryptoX509Chain::SetEffectiveCA ( )
protected

◆ SetStatusCA()

void XrdCryptoX509Chain::SetStatusCA ( ECAStatus  st)
inline

References statusCA.

◆ Size()

int XrdCryptoX509Chain::Size ( ) const
inline

References size.

◆ StatusCA()

ECAStatus XrdCryptoX509Chain::StatusCA ( ) const
inline

References statusCA.

◆ Verify() [1/2]

bool XrdCryptoX509Chain::Verify ( EX509ChainErr e,
const char *  msg,
XrdCryptoX509::EX509Type  type,
int  when,
XrdCryptoX509 xcer,
XrdCryptoX509 xsig,
XrdCryptoX509Crl crl = 0 
)
protected

◆ Verify() [2/2]

virtual bool XrdCryptoX509Chain::Verify ( EX509ChainErr e,
x509ChainVerifyOpt_t vopt = 0 
)
virtual

Reimplemented in XrdCryptogsiX509Chain.

◆ X509ChainError()

const char * XrdCryptoX509Chain::X509ChainError ( EX509ChainErr  e)

Member Data Documentation

◆ begin

XrdCryptoX509ChainNode* XrdCryptoX509Chain::begin
protected

◆ cahash

XrdOucString XrdCryptoX509Chain::cahash
protected

◆ caname

XrdOucString XrdCryptoX509Chain::caname
protected

◆ current

XrdCryptoX509ChainNode* XrdCryptoX509Chain::current
protected

◆ eechash

XrdOucString XrdCryptoX509Chain::eechash
protected

◆ eecname

XrdOucString XrdCryptoX509Chain::eecname
protected

◆ effca

XrdCryptoX509ChainNode* XrdCryptoX509Chain::effca
protected

Referenced by EffCA().

◆ end

XrdCryptoX509ChainNode* XrdCryptoX509Chain::end
protected

Referenced by End().

◆ lastError

XrdOucString XrdCryptoX509Chain::lastError
protected

Referenced by LastError().

◆ previous

XrdCryptoX509ChainNode* XrdCryptoX509Chain::previous
protected

◆ size

int XrdCryptoX509Chain::size
protected

Referenced by Size().

◆ statusCA

ECAStatus XrdCryptoX509Chain::statusCA
protected

Referenced by SetStatusCA(), and StatusCA().


The documentation for this class was generated from the following file: