#include <XrdCryptosslX509Crl.hh>
Inheritance diagram for XrdCryptosslX509Crl:
Public Member Functions | |
XrdCryptosslX509Crl (const char *crlf, int opt=0) | |
XrdCryptosslX509Crl (XrdCryptoX509 *cacert) | |
virtual | ~XrdCryptosslX509Crl () |
bool | IsValid () |
XrdCryptoX509Crldata | Opaque () |
void | Dump () |
const char * | ParentFile () |
int | LastUpdate () |
int | NextUpdate () |
const char * | Issuer () |
const char * | IssuerHash () |
bool | IsRevoked (int serialnumber, int when=0) |
bool | IsRevoked (const char *sernum, int when=0) |
bool | Verify (XrdCryptoX509 *ref) |
Private Member Functions | |
int | LoadCache () |
int | Init (const char *crlf) |
int | InitFromURI (const char *uri, const char *hash) |
Private Attributes | |
X509_CRL * | crl |
int | lastupdate |
int | nextupdate |
XrdOucString | issuer |
XrdOucString | issuerhash |
XrdOucString | srcfile |
XrdOucString | crluri |
int | nrevoked |
XrdSutCache | cache |
Definition at line 33 of file XrdCryptosslX509Crl.hh.
XrdCryptosslX509Crl::XrdCryptosslX509Crl | ( | const char * | crlf, | |
int | opt = 0 | |||
) |
Definition at line 33 of file XrdCryptosslX509Crl.cc.
References crl, DEBUG, EPNAME, Init(), InitFromURI(), issuer, issuerhash, lastupdate, nextupdate, nrevoked, and srcfile.
XrdCryptosslX509Crl::XrdCryptosslX509Crl | ( | XrdCryptoX509 * | cacert | ) |
Definition at line 63 of file XrdCryptosslX509Crl.cc.
References XrdOucString::beginswith(), buf, XrdOucString::c_str(), crl, crluri, DEBUG, EPNAME, free(), XrdCryptoX509::GetExtension(), InitFromURI(), int, issuer, issuerhash, XrdCryptoX509::kCA, lastupdate, malloc(), nextupdate, nrevoked, XrdOucString::replace(), srcfile, XrdCryptoX509::SubjectHash(), XrdOucString::tokenize(), and XrdCryptoX509::type.
XrdCryptosslX509Crl::~XrdCryptosslX509Crl | ( | ) | [virtual] |
bool XrdCryptosslX509Crl::IsValid | ( | ) | [inline, virtual] |
Reimplemented from XrdCryptoX509Crl.
Definition at line 41 of file XrdCryptosslX509Crl.hh.
References crl.
XrdCryptoX509Crldata XrdCryptosslX509Crl::Opaque | ( | ) | [inline, virtual] |
Reimplemented from XrdCryptoX509Crl.
Definition at line 44 of file XrdCryptosslX509Crl.hh.
References crl.
void XrdCryptosslX509Crl::Dump | ( | ) | [virtual] |
Reimplemented from XrdCryptoX509Crl.
Definition at line 535 of file XrdCryptosslX509Crl.cc.
References asctime_r, EPNAME, XrdCryptoX509Crl::IsExpired(), Issuer(), IssuerHash(), LastUpdate(), localtime_r, NextUpdate(), nrevoked, ParentFile(), and PRINT.
Referenced by LoadCache().
const char* XrdCryptosslX509Crl::ParentFile | ( | ) | [inline, virtual] |
Reimplemented from XrdCryptoX509Crl.
Definition at line 48 of file XrdCryptosslX509Crl.hh.
References XrdOucString::c_str(), and srcfile.
Referenced by Dump().
int XrdCryptosslX509Crl::LastUpdate | ( | ) | [virtual] |
Reimplemented from XrdCryptoX509Crl.
Definition at line 360 of file XrdCryptosslX509Crl.cc.
References crl, lastupdate, and XrdCryptosslASN1toUTC().
Referenced by Dump().
int XrdCryptosslX509Crl::NextUpdate | ( | ) | [virtual] |
Reimplemented from XrdCryptoX509Crl.
Definition at line 376 of file XrdCryptosslX509Crl.cc.
References crl, nextupdate, and XrdCryptosslASN1toUTC().
Referenced by Dump(), and IsRevoked().
const char * XrdCryptosslX509Crl::Issuer | ( | ) | [virtual] |
Reimplemented from XrdCryptoX509Crl.
Definition at line 392 of file XrdCryptosslX509Crl.cc.
References XrdOucString::c_str(), crl, DEBUG, EPNAME, issuer, and XrdOucString::length().
const char * XrdCryptosslX509Crl::IssuerHash | ( | ) | [virtual] |
Reimplemented from XrdCryptoX509Crl.
Definition at line 415 of file XrdCryptosslX509Crl.cc.
References XrdOucString::c_str(), crl, DEBUG, EPNAME, issuerhash, XrdOucString::length(), and sprintf().
Referenced by Dump().
bool XrdCryptosslX509Crl::IsRevoked | ( | int | serialnumber, | |
int | when = 0 | |||
) | [virtual] |
Reimplemented from XrdCryptoX509Crl.
Definition at line 461 of file XrdCryptosslX509Crl.cc.
References cache, DEBUG, EPNAME, XrdSutCache::Get(), XrdSutPFEntry::mtime, NextUpdate(), nrevoked, and sprintf().
bool XrdCryptosslX509Crl::IsRevoked | ( | const char * | sernum, | |
int | when = 0 | |||
) | [virtual] |
Reimplemented from XrdCryptoX509Crl.
Definition at line 500 of file XrdCryptosslX509Crl.cc.
References cache, DEBUG, EPNAME, XrdSutCache::Get(), XrdSutPFEntry::mtime, NextUpdate(), and nrevoked.
bool XrdCryptosslX509Crl::Verify | ( | XrdCryptoX509 * | ref | ) | [virtual] |
Reimplemented from XrdCryptoX509Crl.
Definition at line 442 of file XrdCryptosslX509Crl.cc.
References crl.
int XrdCryptosslX509Crl::LoadCache | ( | ) | [private] |
Definition at line 283 of file XrdCryptosslX509Crl.cc.
References XrdSutCache::Add(), cache, crl, DEBUG, Dump(), EPNAME, i, XrdSutCache::Init(), XrdSutPFEntry::mtime, nrevoked, XrdSutCache::Rehash(), TRACE, and XrdCryptosslASN1toUTC().
Referenced by Init().
int XrdCryptosslX509Crl::Init | ( | const char * | crlf | ) | [private] |
Definition at line 139 of file XrdCryptosslX509Crl.cc.
References crl, DEBUG, EPNAME, fc, fclose(), fopen, Issuer(), LoadCache(), srcfile, and stat.
Referenced by InitFromURI(), and XrdCryptosslX509Crl().
int XrdCryptosslX509Crl::InitFromURI | ( | const char * | uri, | |
const char * | hash | |||
) | [private] |
Definition at line 193 of file XrdCryptosslX509Crl.cc.
References XrdOucString::c_str(), DEBUG, EPNAME, getenv(), h, Init(), XrdOucString::replace(), stat, u, and unlink.
Referenced by XrdCryptosslX509Crl().
X509_CRL* XrdCryptosslX509Crl::crl [private] |
Definition at line 66 of file XrdCryptosslX509Crl.hh.
Referenced by Init(), Issuer(), IssuerHash(), IsValid(), LastUpdate(), LoadCache(), NextUpdate(), Opaque(), Verify(), XrdCryptosslX509Crl(), and ~XrdCryptosslX509Crl().
int XrdCryptosslX509Crl::lastupdate [private] |
Definition at line 67 of file XrdCryptosslX509Crl.hh.
Referenced by LastUpdate(), and XrdCryptosslX509Crl().
int XrdCryptosslX509Crl::nextupdate [private] |
Definition at line 68 of file XrdCryptosslX509Crl.hh.
Referenced by NextUpdate(), and XrdCryptosslX509Crl().
XrdOucString XrdCryptosslX509Crl::issuer [private] |
Definition at line 69 of file XrdCryptosslX509Crl.hh.
Referenced by Issuer(), and XrdCryptosslX509Crl().
XrdOucString XrdCryptosslX509Crl::issuerhash [private] |
Definition at line 70 of file XrdCryptosslX509Crl.hh.
Referenced by IssuerHash(), and XrdCryptosslX509Crl().
XrdOucString XrdCryptosslX509Crl::srcfile [private] |
Definition at line 71 of file XrdCryptosslX509Crl.hh.
Referenced by Init(), ParentFile(), and XrdCryptosslX509Crl().
XrdOucString XrdCryptosslX509Crl::crluri [private] |
int XrdCryptosslX509Crl::nrevoked [private] |
Definition at line 74 of file XrdCryptosslX509Crl.hh.
Referenced by Dump(), IsRevoked(), LoadCache(), and XrdCryptosslX509Crl().
XrdSutCache XrdCryptosslX509Crl::cache [private] |