XRootD
Loading...
Searching...
No Matches
XrdCryptoX509Crl Class Reference

#include <XrdCryptoX509Crl.hh>

+ Inheritance diagram for XrdCryptoX509Crl:
+ Collaboration diagram for XrdCryptoX509Crl:

Public Member Functions

 XrdCryptoX509Crl ()
 
virtual ~XrdCryptoX509Crl ()
 
virtual void Dump ()
 
virtual bool IsExpired (int when=0)
 
virtual bool IsRevoked (const char *sernum, int when)
 
virtual bool IsRevoked (int serialnumber, int when)
 
virtual const char * Issuer ()
 
const char * IssuerHash ()
 
virtual const char * IssuerHash (int)
 
virtual bool IsValid ()
 
virtual time_t LastUpdate ()
 
virtual time_t NextUpdate ()
 
virtual XrdCryptoX509Crldata Opaque ()
 
virtual const char * ParentFile ()
 
virtual bool Verify (XrdCryptoX509 *ref)
 

Detailed Description

Definition at line 49 of file XrdCryptoX509Crl.hh.

Constructor & Destructor Documentation

◆ XrdCryptoX509Crl()

XrdCryptoX509Crl::XrdCryptoX509Crl ( )
inline

Definition at line 52 of file XrdCryptoX509Crl.hh.

52{ }

◆ ~XrdCryptoX509Crl()

virtual XrdCryptoX509Crl::~XrdCryptoX509Crl ( )
inlinevirtual

Definition at line 53 of file XrdCryptoX509Crl.hh.

53{ }

Member Function Documentation

◆ Dump()

void XrdCryptoX509Crl::Dump ( )
virtual

Reimplemented in XrdCryptosslX509Crl.

Definition at line 40 of file XrdCryptoX509Crl.cc.

41{
42 // Dump content
43 ABSTRACTMETHOD("XrdCryptoX509Crl::Dump");
44}
#define ABSTRACTMETHOD(x)

References ABSTRACTMETHOD.

Referenced by main().

+ Here is the caller graph for this function:

◆ IsExpired()

bool XrdCryptoX509Crl::IsExpired ( int when = 0)
virtual

Definition at line 55 of file XrdCryptoX509Crl.cc.

56{
57 // Check expiration at UTC time 'when'. Use when =0 (default) to check
58 // at present time.
59
60 int now = (when > 0) ? when : (int)time(0);
61 return (now > NextUpdate());
62}
virtual time_t NextUpdate()

References NextUpdate().

Referenced by XrdCryptosslX509Crl::Dump(), and GetCACheck().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsRevoked() [1/2]

bool XrdCryptoX509Crl::IsRevoked ( const char * sernum,
int when )
virtual

Reimplemented in XrdCryptosslX509Crl.

Definition at line 129 of file XrdCryptoX509Crl.cc.

130{
131 // Verify if certificate with specified serial number has been revoked
132 ABSTRACTMETHOD("XrdCryptoX509Crl::IsRevoked");
133 return 1;
134}

References ABSTRACTMETHOD.

◆ IsRevoked() [2/2]

bool XrdCryptoX509Crl::IsRevoked ( int serialnumber,
int when )
virtual

Reimplemented in XrdCryptosslX509Crl.

Definition at line 121 of file XrdCryptoX509Crl.cc.

122{
123 // Verify if certificate with specified serial number has been revoked
124 ABSTRACTMETHOD("XrdCryptoX509Crl::IsRevoked");
125 return 1;
126}

References ABSTRACTMETHOD.

Referenced by main(), and XrdCryptoX509Chain::Verify().

+ Here is the caller graph for this function:

◆ Issuer()

const char * XrdCryptoX509Crl::Issuer ( )
virtual

Reimplemented in XrdCryptosslX509Crl.

Definition at line 89 of file XrdCryptoX509Crl.cc.

90{
91 // Return issuer name
92 ABSTRACTMETHOD("XrdCryptoX509Crl::Issuer");
93 return (const char *)0;
94}

References ABSTRACTMETHOD.

◆ IssuerHash() [1/2]

const char * XrdCryptoX509Crl::IssuerHash ( )
inline

Definition at line 73 of file XrdCryptoX509Crl.hh.

73{ return IssuerHash(0); } // hash
const char * IssuerHash()

References IssuerHash().

Referenced by XrdCryptosslX509Crl::Dump(), and IssuerHash().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IssuerHash() [2/2]

const char * XrdCryptoX509Crl::IssuerHash ( int )
virtual

Reimplemented in XrdCryptosslX509Crl.

Definition at line 97 of file XrdCryptoX509Crl.cc.

98{
99 // Return issuer name
100 ABSTRACTMETHOD("XrdCryptoX509Crl::IssuerHash");
101 return (const char *)0;
102}

References ABSTRACTMETHOD.

◆ IsValid()

bool XrdCryptoX509Crl::IsValid ( )
virtual

Reimplemented in XrdCryptosslX509Crl.

Definition at line 47 of file XrdCryptoX509Crl.cc.

48{
49 // Check validity
50 ABSTRACTMETHOD("XrdCryptoX509Crl::IsValid");
51 return 0;
52}

References ABSTRACTMETHOD.

◆ LastUpdate()

time_t XrdCryptoX509Crl::LastUpdate ( )
virtual

Reimplemented in XrdCryptosslX509Crl.

Definition at line 65 of file XrdCryptoX509Crl.cc.

66{
67 // Time of last update
68 ABSTRACTMETHOD("XrdCryptoX509Crl::LastUpdate");
69 return -1;
70}

References ABSTRACTMETHOD.

◆ NextUpdate()

time_t XrdCryptoX509Crl::NextUpdate ( )
virtual

Reimplemented in XrdCryptosslX509Crl.

Definition at line 73 of file XrdCryptoX509Crl.cc.

74{
75 // Time of next update
76 ABSTRACTMETHOD("XrdCryptoX509Crl::NextUpdate");
77 return -1;
78}

References ABSTRACTMETHOD.

Referenced by IsExpired().

+ Here is the caller graph for this function:

◆ Opaque()

XrdCryptoX509Crldata XrdCryptoX509Crl::Opaque ( )
virtual

Reimplemented in XrdCryptosslX509Crl.

Definition at line 105 of file XrdCryptoX509Crl.cc.

106{
107 // Return underlying certificate in raw format
108 ABSTRACTMETHOD("XrdCryptoX509Crl::Opaque");
109 return (XrdCryptoX509Crldata)0;
110}
void * XrdCryptoX509Crldata

References ABSTRACTMETHOD.

Referenced by XrdCryptosslFactory::X509Crl(), and XrdCryptosslFactory::X509Crl().

+ Here is the caller graph for this function:

◆ ParentFile()

const char * XrdCryptoX509Crl::ParentFile ( )
virtual

Reimplemented in XrdCryptosslX509Crl.

Definition at line 81 of file XrdCryptoX509Crl.cc.

82{
83 // Return parent file name
84 ABSTRACTMETHOD("XrdCryptoX509Crl::ParentFile");
85 return (const char *)0;
86}

References ABSTRACTMETHOD.

◆ Verify()

bool XrdCryptoX509Crl::Verify ( XrdCryptoX509 * ref)
virtual

Reimplemented in XrdCryptosslX509Crl.

Definition at line 113 of file XrdCryptoX509Crl.cc.

114{
115 // Verify certificate signature with pub key of ref cert
116 ABSTRACTMETHOD("XrdCryptoX509Crl::Verify");
117 return 0;
118}

References ABSTRACTMETHOD.

Referenced by main().

+ Here is the caller graph for this function:

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