xrootd
XrdCryptoX509Crl.hh
Go to the documentation of this file.
1 // $Id$
2 #ifndef __CRYPTO_X509CRL_H__
3 #define __CRYPTO_X509CRL_H__
4 /******************************************************************************/
5 /* */
6 /* X r d C r y p t o X 5 0 9 C r l . h h */
7 /* */
8 /* */
9 /* (c) 2005 G. Ganis , CERN */
10 /* */
11 /******************************************************************************/
12 
13 /* ************************************************************************** */
14 /* */
15 /* Abstract interface for X509 CRLs . */
16 /* Allows to plug-in modules based on different crypto implementation */
17 /* (OpenSSL, Botan, ...) */
18 /* */
19 /* ************************************************************************** */
20 
22 
23 typedef void * XrdCryptoX509Crldata;
24 
25 // ---------------------------------------------------------------------------//
26 //
27 // X509 CRL interface
28 // Describes one CRL certificate
29 //
30 // ---------------------------------------------------------------------------//
32 public:
33 
35  virtual ~XrdCryptoX509Crl() { }
36 
37  // Status
38  virtual bool IsValid();
39  virtual bool IsExpired(int when = 0); // Expired
40 
41  // Access underlying data (in opaque form: used in chains)
42  virtual XrdCryptoX509Crldata Opaque();
43 
44  // Dump information
45  virtual void Dump();
46  virtual const char *ParentFile();
47 
48  // Validity interval
49  virtual int LastUpdate(); // time when last updated
50  virtual int NextUpdate(); // time foreseen for next update
51 
52  // Issuer of top certificate
53  virtual const char *Issuer();
54  virtual const char *IssuerHash(); // hash
55 
56  // Chec certificate revocation
57  virtual bool IsRevoked(int serialnumber, int when);
58  virtual bool IsRevoked(const char *sernum, int when);
59 
60  // Verify signature
61  virtual bool Verify(XrdCryptoX509 *ref);
62 
63 };
64 
65 #endif