diff options
Diffstat (limited to 'Swiften')
-rw-r--r-- | Swiften/TLS/OpenSSL/OpenSSLCertificate.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |