From 16f5905b4f14f41239c34480888305ab5bfaf60e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be> Date: Sat, 12 Mar 2011 18:41:36 +0100 Subject: Fixed OpenSSL compilation. diff --git a/Swiften/TLS/OpenSSL/OpenSSLCertificate.cpp b/Swiften/TLS/OpenSSL/OpenSSLCertificate.cpp index bc39c1b..0b2df5b 100644 --- a/Swiften/TLS/OpenSSL/OpenSSLCertificate.cpp +++ b/Swiften/TLS/OpenSSL/OpenSSLCertificate.cpp @@ -23,9 +23,9 @@ OpenSSLCertificate::OpenSSLCertificate(boost::shared_ptr<X509> cert) : cert(cert OpenSSLCertificate::OpenSSLCertificate(const ByteArray& der) { #if OPENSSL_VERSION_NUMBER <= 0x009070cfL - unsigned char* p = reinterpret_cast<unsigned char*>(const_cast<char*>(der.getData())); + unsigned char* p = const_cast<unsigned char*>(der.getData()); #else - const unsigned char* p = reinterpret_cast<const unsigned char*>(der.getData()); + const unsigned char* p = der.getData(); #endif cert = boost::shared_ptr<X509>(d2i_X509(NULL, &p, der.getSize()), X509_free); if (!cert) { -- cgit v0.10.2-6-g49f6