xrootd
XrdCryptosslX509Store.hh
Go to the documentation of this file.
1 // $Id$
2 #ifndef __CRYPTO_SSLX509STORE_H__
3 #define __CRYPTO_SSLX509STORE_H__
4 /******************************************************************************/
5 /* */
6 /* X r d C r y p t o s s l X 5 0 9 S t o r e . h h */
7 /* */
8 /* (c) 2005 G. Ganis , CERN */
9 /* */
10 /******************************************************************************/
11 
12 /* ************************************************************************** */
13 /* */
14 /* OpenSSL implementation of XrdCryptoX509Store */
15 /* */
16 /* ************************************************************************** */
17 
18 #include <XrdCrypto/XrdCryptoX509Store.hh>
19 
20 // ---------------------------------------------------------------------------//
21 //
22 // OpenSSL X509 implementation
23 //
24 // ---------------------------------------------------------------------------//
25 class XrdCryptosslX509Store : public XrdCryptoX509Store
26 {
27 public:
29  virtual ~XrdCryptosslX509Store();
30 
31  // Dump information
32  void Dump();
33 
34  // Validity
35  bool IsValid();
36 
37  // Add certificates to store
38  int Add(XrdCryptoX509 *);
39 
40  // Verify the chain stored
41  bool Verify();
42 
43 private:
44  X509_STORE *store; // the store
45  STACK_OF(X509) *chain; // chain of certificates other than CA
46 };
47 
48 #endif