|
xrootd
|
00001 #ifndef __CRYPTO_SSLX509STORE_H__ 00002 #define __CRYPTO_SSLX509STORE_H__ 00003 /******************************************************************************/ 00004 /* */ 00005 /* X r d C r y p t o s s l X 5 0 9 S t o r e . h h */ 00006 /* */ 00007 /* (c) 2005 G. Ganis , CERN */ 00008 /* */ 00009 /* This file is part of the XRootD software suite. */ 00010 /* */ 00011 /* XRootD is free software: you can redistribute it and/or modify it under */ 00012 /* the terms of the GNU Lesser General Public License as published by the */ 00013 /* Free Software Foundation, either version 3 of the License, or (at your */ 00014 /* option) any later version. */ 00015 /* */ 00016 /* XRootD is distributed in the hope that it will be useful, but WITHOUT */ 00017 /* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */ 00018 /* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public */ 00019 /* License for more details. */ 00020 /* */ 00021 /* You should have received a copy of the GNU Lesser General Public License */ 00022 /* along with XRootD in a file called COPYING.LESSER (LGPL license) and file */ 00023 /* COPYING (GPL license). If not, see <http://www.gnu.org/licenses/>. */ 00024 /* */ 00025 /* The copyright holder's institutional names and contributor's names may not */ 00026 /* be used to endorse or promote products derived from this software without */ 00027 /* specific prior written permission of the institution or contributor. */ 00028 /* */ 00029 /******************************************************************************/ 00030 00031 /* ************************************************************************** */ 00032 /* */ 00033 /* OpenSSL implementation of XrdCryptoX509Store */ 00034 /* */ 00035 /* ************************************************************************** */ 00036 00037 #include "XrdCrypto/XrdCryptoX509Store.hh" 00038 00039 // ---------------------------------------------------------------------------// 00040 // 00041 // OpenSSL X509 implementation 00042 // 00043 // ---------------------------------------------------------------------------// 00044 class XrdCryptosslX509Store : public XrdCryptoX509Store 00045 { 00046 public: 00047 XrdCryptosslX509Store(); 00048 virtual ~XrdCryptosslX509Store(); 00049 00050 // Dump information 00051 void Dump(); 00052 00053 // Validity 00054 bool IsValid(); 00055 00056 // Add certificates to store 00057 int Add(XrdCryptoX509 *); 00058 00059 // Verify the chain stored 00060 bool Verify(); 00061 00062 private: 00063 X509_STORE *store; // the store 00064 STACK_OF(X509) *chain; // chain of certificates other than CA 00065 }; 00066 00067 #endif
1.7.6.1