|
xrootd
|
#include <XrdCryptosslX509Crl.hh>


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 | GetFileType (const char *crlfn) |
| 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 |
| XrdCryptosslX509Crl::XrdCryptosslX509Crl | ( | const char * | crlf, |
| int | opt = 0 |
||
| ) |
References EPNAME, crl, lastupdate, nextupdate, issuer, issuerhash, srcfile, nrevoked, Init(), DEBUG, and InitFromURI().
| XrdCryptosslX509Crl::XrdCryptosslX509Crl | ( | XrdCryptoX509 * | cacert | ) |
References EPNAME, crl, lastupdate, nextupdate, issuer, issuerhash, srcfile, nrevoked, XrdCryptoX509::type, XrdCryptoX509::kCA, DEBUG, XrdCryptoX509::GetExtension(), XrdOucString::tokenize(), XrdOucString::beginswith(), XrdOucString::replace(), InitFromURI(), XrdOucString::c_str(), XrdCryptoX509::SubjectHash(), and crluri.
| XrdCryptosslX509Crl::~XrdCryptosslX509Crl | ( | ) | [virtual] |
References crl.
| void XrdCryptosslX509Crl::Dump | ( | ) | [virtual] |
Reimplemented from XrdCryptoX509Crl.
References EPNAME, LastUpdate(), localtime_r, NextUpdate(), PRINT, ParentFile(), Issuer(), IssuerHash(), XrdCryptoX509Crl::IsExpired(), and nrevoked.
Referenced by LoadCache().
| int XrdCryptosslX509Crl::GetFileType | ( | const char * | crlfn | ) | [private] |
References EPNAME, PRINT, fopen, and fclose().
Referenced by InitFromURI().
| int XrdCryptosslX509Crl::Init | ( | const char * | crlf | ) | [private] |
References EPNAME, DEBUG, stat(), fopen, crl, fclose(), srcfile, Issuer(), and LoadCache().
Referenced by XrdCryptosslX509Crl(), and InitFromURI().
| int XrdCryptosslX509Crl::InitFromURI | ( | const char * | uri, |
| const char * | hash | ||
| ) | [private] |
References EPNAME, DEBUG, STR_NPOS, XrdOucString::assign(), XrdOucString::c_str(), stat(), GetFileType(), XrdOucString::replace(), unlink(), and Init().
Referenced by XrdCryptosslX509Crl().
| bool XrdCryptosslX509Crl::IsRevoked | ( | int | serialnumber, |
| int | when = 0 |
||
| ) | [virtual] |
Reimplemented from XrdCryptoX509Crl.
References EPNAME, NextUpdate(), DEBUG, nrevoked, cache, XrdSutCache::Get(), and XrdSutPFEntry::mtime.
| bool XrdCryptosslX509Crl::IsRevoked | ( | const char * | sernum, |
| int | when = 0 |
||
| ) | [virtual] |
Reimplemented from XrdCryptoX509Crl.
References EPNAME, NextUpdate(), DEBUG, nrevoked, cache, XrdSutCache::Get(), and XrdSutPFEntry::mtime.
| const char * XrdCryptosslX509Crl::Issuer | ( | ) | [virtual] |
Reimplemented from XrdCryptoX509Crl.
References EPNAME, issuer, XrdOucString::length(), crl, DEBUG, and XrdOucString::c_str().
| const char * XrdCryptosslX509Crl::IssuerHash | ( | ) | [virtual] |
Reimplemented from XrdCryptoX509Crl.
References EPNAME, issuerhash, XrdOucString::length(), crl, DEBUG, and XrdOucString::c_str().
Referenced by Dump().
| bool XrdCryptosslX509Crl::IsValid | ( | ) | [inline, virtual] |
Reimplemented from XrdCryptoX509Crl.
References crl.
| int XrdCryptosslX509Crl::LastUpdate | ( | ) | [virtual] |
Reimplemented from XrdCryptoX509Crl.
References lastupdate, crl, and XrdCryptosslASN1toUTC().
Referenced by Dump().
| int XrdCryptosslX509Crl::LoadCache | ( | ) | [private] |
References EPNAME, crl, DEBUG, nrevoked, cache, XrdSutCache::Init(), TRACE, Dump(), XrdSutCache::Add(), XrdSutPFEntry::mtime, XrdCryptosslASN1toUTC(), and XrdSutCache::Rehash().
Referenced by Init().
| int XrdCryptosslX509Crl::NextUpdate | ( | ) | [virtual] |
Reimplemented from XrdCryptoX509Crl.
References nextupdate, crl, and XrdCryptosslASN1toUTC().
Referenced by IsRevoked(), and Dump().
| XrdCryptoX509Crldata XrdCryptosslX509Crl::Opaque | ( | ) | [inline, virtual] |
Reimplemented from XrdCryptoX509Crl.
References crl.
| const char* XrdCryptosslX509Crl::ParentFile | ( | ) | [inline, virtual] |
Reimplemented from XrdCryptoX509Crl.
References srcfile, and XrdOucString::c_str().
Referenced by Dump().
| bool XrdCryptosslX509Crl::Verify | ( | XrdCryptoX509 * | ref | ) | [virtual] |
Reimplemented from XrdCryptoX509Crl.
References crl, and XrdCryptoX509::Opaque().
XrdSutCache XrdCryptosslX509Crl::cache [private] |
Referenced by LoadCache(), and IsRevoked().
X509_CRL* XrdCryptosslX509Crl::crl [private] |
Referenced by XrdCryptosslX509Crl(), ~XrdCryptosslX509Crl(), Init(), LoadCache(), LastUpdate(), NextUpdate(), Issuer(), IssuerHash(), Verify(), IsValid(), and Opaque().
XrdOucString XrdCryptosslX509Crl::crluri [private] |
Referenced by XrdCryptosslX509Crl().
XrdOucString XrdCryptosslX509Crl::issuer [private] |
Referenced by XrdCryptosslX509Crl(), and Issuer().
XrdOucString XrdCryptosslX509Crl::issuerhash [private] |
Referenced by XrdCryptosslX509Crl(), and IssuerHash().
int XrdCryptosslX509Crl::lastupdate [private] |
Referenced by XrdCryptosslX509Crl(), and LastUpdate().
int XrdCryptosslX509Crl::nextupdate [private] |
Referenced by XrdCryptosslX509Crl(), and NextUpdate().
int XrdCryptosslX509Crl::nrevoked [private] |
Referenced by XrdCryptosslX509Crl(), LoadCache(), IsRevoked(), and Dump().
XrdOucString XrdCryptosslX509Crl::srcfile [private] |
Referenced by XrdCryptosslX509Crl(), Init(), and ParentFile().
1.7.5