1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/libraries/libmsn/libmsn-4.1-openssl-1.patch
Sander van der Burg bfbdc2db7c Stole a patch from gentoo to fix the compilation of libmsn against OpenSSL-1.0.0
svn path=/nixpkgs/trunk/; revision=22805
2010-07-29 09:41:29 +00:00

18 lines
702 B
Diff

http://bugs.gentoo.org/328031
--- msntest/msntest.cpp
+++ msntest/msntest.cpp
@@ -259,7 +259,11 @@
if(mySocketsSsl[i].isSSL && !mySocketsSsl[i].isConnected)
{
BIO *bio_socket_new;
- SSL_METHOD *meth=NULL;
+ #if OPENSSL_VERSION_NUMBER >= 0x10000000L
+ const SSL_METHOD *meth=NULL;
+ #else
+ SSL_METHOD *meth=NULL;
+ #endif
meth=SSLv23_client_method();
SSLeay_add_ssl_algorithms();
mySocketsSsl[i].ctx = SSL_CTX_new(meth);