gcc const fix, converted linefeeds
[shibboleth/cpp-xmltooling.git] / xmltooling / security / OpenSSLCryptoX509CRL.h
index a689ebf..ac3c090 100644 (file)
@@ -1,66 +1,66 @@
-/*\r
- * Copyright 2006 The Apache Software Foundation.\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *     http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-\r
-/**\r
- * OpenSSLCryptoX509CRL.h\r
- * \r
- * OpenSSL-based class for handling X.509 CRLs\r
- */\r
-\r
-#if !defined(__xmltooling_opensslx509crl_h__) && !defined(XMLTOOLING_NO_XMLSEC)\r
-#define __xmltooling_opensslx509crl_h__\r
-\r
-#include <xmltooling/security/XSECCryptoX509CRL.h>\r
-\r
-#include <openssl/bio.h>\r
-#include <openssl/x509v3.h>\r
-#include <xsec/utils/XSECSafeBuffer.hpp>\r
-\r
-namespace xmltooling {\r
-    class XMLTOOL_API OpenSSLCryptoX509CRL : public XSECCryptoX509CRL {\r
-    public:\r
-       OpenSSLCryptoX509CRL() : mp_X509CRL(NULL), m_DERX509CRL("") {}\r
-       virtual ~OpenSSLCryptoX509CRL();\r
-\r
-       virtual const XMLCh* getProviderName() const {\r
-            return DSIGConstants::s_unicodeStrPROVOpenSSL;\r
-        }\r
-       virtual void loadX509CRLBase64Bin(const char* buf, unsigned int len);\r
-    \r
-       virtual safeBuffer& getDEREncodingSB(void) {\r
-            return m_DERX509CRL;\r
-        }\r
-    \r
-       OpenSSLCryptoX509CRL(X509_CRL* x);\r
-       X509_CRL* getOpenSSLX509CRL(void) {\r
-            return mp_X509CRL;\r
-        }\r
-\r
-        XSECCryptoX509CRL* clone() const {\r
-            OpenSSLCryptoX509CRL* copy = new OpenSSLCryptoX509CRL();\r
-            copy->mp_X509CRL = X509_CRL_dup(mp_X509CRL);\r
-            copy->m_DERX509CRL = m_DERX509CRL;\r
-            return copy;\r
-        }\r
-    \r
-    private:\r
-       X509_CRL* mp_X509CRL;\r
-       safeBuffer m_DERX509CRL;\r
-    };\r
-};\r
-\r
-#endif /* __xmltooling_opensslx509crl_h__ */\r
-\r
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * OpenSSLCryptoX509CRL.h
+ * 
+ * OpenSSL-based class for handling X.509 CRLs
+ */
+
+#if !defined(__xmltooling_opensslx509crl_h__) && !defined(XMLTOOLING_NO_XMLSEC)
+#define __xmltooling_opensslx509crl_h__
+
+#include <xmltooling/security/XSECCryptoX509CRL.h>
+
+#include <openssl/bio.h>
+#include <openssl/x509v3.h>
+#include <xsec/utils/XSECSafeBuffer.hpp>
+
+namespace xmltooling {
+    class XMLTOOL_API OpenSSLCryptoX509CRL : public XSECCryptoX509CRL {
+    public:
+       OpenSSLCryptoX509CRL() : mp_X509CRL(NULL), m_DERX509CRL("") {}
+       virtual ~OpenSSLCryptoX509CRL();
+
+       virtual const XMLCh* getProviderName() const {
+            return DSIGConstants::s_unicodeStrPROVOpenSSL;
+        }
+       virtual void loadX509CRLBase64Bin(const char* buf, unsigned int len);
+    
+       virtual safeBuffer& getDEREncodingSB(void) {
+            return m_DERX509CRL;
+        }
+    
+       OpenSSLCryptoX509CRL(X509_CRL* x);
+       X509_CRL* getOpenSSLX509CRL(void) {
+            return mp_X509CRL;
+        }
+
+        XSECCryptoX509CRL* clone() const {
+            OpenSSLCryptoX509CRL* copy = new OpenSSLCryptoX509CRL();
+            copy->mp_X509CRL = X509_CRL_dup(mp_X509CRL);
+            copy->m_DERX509CRL = m_DERX509CRL;
+            return copy;
+        }
+    
+    private:
+       X509_CRL* mp_X509CRL;
+       safeBuffer m_DERX509CRL;
+    };
+};
+
+#endif /* __xmltooling_opensslx509crl_h__ */
+