summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-11-15 15:55:33 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-11-15 15:55:37 (GMT)
commit6d20b700fc8bc285fd58dceb73c89baf58592ddd (patch)
tree04f92ebaef00ecbd665f3351f0031ae9ad1a8c98 /Swiften/TLS/OpenSSL
parent6625c07d980f0761f64bde24d3b7f63cfc7e21d1 (diff)
downloadswift-6d20b700fc8bc285fd58dceb73c89baf58592ddd.zip
swift-6d20b700fc8bc285fd58dceb73c89baf58592ddd.tar.bz2
Fix compilation on OS X
Diffstat (limited to 'Swiften/TLS/OpenSSL')
-rw-r--r--Swiften/TLS/OpenSSL/OpenSSLCertificate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/TLS/OpenSSL/OpenSSLCertificate.cpp b/Swiften/TLS/OpenSSL/OpenSSLCertificate.cpp
index 8c6cb25..54457f4 100644
--- a/Swiften/TLS/OpenSSL/OpenSSLCertificate.cpp
+++ b/Swiften/TLS/OpenSSL/OpenSSLCertificate.cpp
@@ -21,7 +21,7 @@ OpenSSLCertificate::OpenSSLCertificate(boost::shared_ptr<X509> cert) : cert(cert
OpenSSLCertificate::OpenSSLCertificate(const ByteArray& der) {
- const unsigned char* p = reinterpret_cast<const unsigned char*>(der.getData());
+ unsigned char* p = reinterpret_cast<unsigned char*>(const_cast<char*>(der.getData()));
cert = boost::shared_ptr<X509>(d2i_X509(NULL, &p, der.getSize()), X509_free);
parse();
}