1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-27 08:01:14 +00:00
nixpkgs/pkgs/development/libraries/libmsn/libmsn-4.1-openssl-1.patch

18 lines
702 B
Diff
Raw Normal View History

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);