2 * Copyright 2001-2010 The Apache Software Foundation.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 * @file xmltooling/security/OpenSSLCryptoX509CRL.h
20 * OpenSSL-based class for handling X.509 CRLs.
23 #if !defined(__xmltooling_opensslx509crl_h__) && !defined(XMLTOOLING_NO_XMLSEC)
24 #define __xmltooling_opensslx509crl_h__
26 #include <xmltooling/security/XSECCryptoX509CRL.h>
28 #include <openssl/x509v3.h>
29 #include <xsec/utils/XSECSafeBuffer.hpp>
31 namespace xmltooling {
33 * OpenSSL-based class for handling X.509 CRLs
35 class XMLTOOL_API OpenSSLCryptoX509CRL : public XSECCryptoX509CRL {
37 /** Default constructor. */
38 OpenSSLCryptoX509CRL();
39 virtual ~OpenSSLCryptoX509CRL();
41 const XMLCh* getProviderName() const;
42 void loadX509CRLBase64Bin(const char* buf, unsigned int len);
43 safeBuffer& getDEREncodingSB();
48 * @param x a native CRL object
50 OpenSSLCryptoX509CRL(X509_CRL* x);
53 * Returns native CRL object.
55 * @return native CRL object, or nullptr
57 X509_CRL* getOpenSSLX509CRL();
59 XSECCryptoX509CRL* clone() const;
63 safeBuffer m_DERX509CRL;
67 #endif /* __xmltooling_opensslx509crl_h__ */