You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nextcloud-client/openssl.patch

35 lines
1.3 KiB

diff -urNr owncloudclient-2.2.4.orig/src/3rdparty/certificates/p12topem.cpp owncloudclient-2.2.4/src/3rdparty/certificates/p12topem.cpp
--- owncloudclient-2.2.4.orig/src/3rdparty/certificates/p12topem.cpp 2016-09-27 10:53:37.000000000 +0200
+++ owncloudclient-2.2.4/src/3rdparty/certificates/p12topem.cpp 2016-11-02 19:30:24.104679798 +0100
@@ -65,7 +65,7 @@
ret.PrivateKey = "";
ret.Certificate = "";
- SSLeay_add_all_algorithms();
+ ADD_ALL_ALGORITHMS();
ERR_load_crypto_strings();
if(!(fp = fopen(p12File.c_str(), "rb"))) {
ret.ErrorCode = 1;
diff -urNr owncloudclient-2.2.4.orig/src/3rdparty/certificates/p12topem.h owncloudclient-2.2.4/src/3rdparty/certificates/p12topem.h
--- owncloudclient-2.2.4.orig/src/3rdparty/certificates/p12topem.h 2016-09-27 10:53:37.000000000 +0200
+++ owncloudclient-2.2.4/src/3rdparty/certificates/p12topem.h 2016-11-02 19:29:08.563079631 +0100
@@ -29,6 +29,13 @@
#include <openssl/pem.h>
#include <openssl/err.h>
#include <openssl/pkcs12.h>
+#include <openssl/opensslv.h>
+
+#if OPENSSL_VERSION_NUMBER <= 0x0090400f
+# define ADD_ALL_ALGORITHMS() SSLeay_add_all_algorithms()
+#else
+# define ADD_ALL_ALGORITHMS() OpenSSL_add_all_algorithms()
+#endif
using namespace std;
@@ -59,4 +66,3 @@
resultP12ToPem p12ToPem(string p12File, string p12Passwd);
#endif /* P12TOPEM_H */
-