aboutsummaryrefslogtreecommitdiffstats
path: root/main/bacula-client/bacula-5.0.2-openssl.patch
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@gmail.com>2011-04-05 12:34:59 +0000
committerLeonardo Arena <rnalrd@gmail.com>2011-04-05 12:34:59 +0000
commit4bf272d1a2a266c8d3c053de0b08e5866d1f0c57 (patch)
tree18fa6d2c64a98f30dfbb183744dd834974d0dee9 /main/bacula-client/bacula-5.0.2-openssl.patch
parent884ad269bd08686243e49698a3bbacf759d6c0b7 (diff)
downloadaports-4bf272d1a2a266c8d3c053de0b08e5866d1f0c57.tar.bz2
aports-4bf272d1a2a266c8d3c053de0b08e5866d1f0c57.tar.xz
main/bacula: apply same patches and pkgrel of main/bacula
Diffstat (limited to 'main/bacula-client/bacula-5.0.2-openssl.patch')
-rw-r--r--main/bacula-client/bacula-5.0.2-openssl.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/main/bacula-client/bacula-5.0.2-openssl.patch b/main/bacula-client/bacula-5.0.2-openssl.patch
new file mode 100644
index 0000000000..a71d8d5467
--- /dev/null
+++ b/main/bacula-client/bacula-5.0.2-openssl.patch
@@ -0,0 +1,24 @@
+diff -up bacula-5.0.2/src/lib/crypto.c.openssl bacula-5.0.2/bacula-5.0.2/src/lib/crypto.c
+--- bacula-5.0.2/src/lib/crypto.c.openssl 2010-04-27 21:58:29.000000000 +0200
++++ bacula-5.0.2/src/lib/crypto.c 2010-06-01 17:51:52.846894465 +0200
+@@ -51,7 +51,7 @@
+ * For OpenSSL version 1.x, EVP_PKEY_encrypt no longer
+ * exists. It was not an official API.
+ */
+-#ifdef HAVE_OPENSSLv1
++#if (OPENSSL_VERSION_NUMBER >= 0x10000000L)
+ #define EVP_PKEY_encrypt EVP_PKEY_encrypt_old
+ #define EVP_PKEY_decrypt EVP_PKEY_decrypt_old
+ #endif
+diff -up bacula-5.0.2/bacula-5.0.2/src/lib/tls.c.openssl bacula-5.0.2/bacula-5.0.2/src/lib/tls.c
+--- bacula-5.0.2/src/lib/tls.c.openssl 2010-04-27 21:58:29.000000000 +0200
++++ bacula-5.0.2/src/lib/tls.c 2010-06-01 17:52:15.535769446 +0200
+@@ -315,7 +315,7 @@ bool tls_postconnect_verify_host(JCR *jc
+ extname = OBJ_nid2sn(OBJ_obj2nid(X509_EXTENSION_get_object(ext)));
+
+ if (strcmp(extname, "subjectAltName") == 0) {
+-#ifdef HAVE_OPENSSLv1
++#if (OPENSSL_VERSION_NUMBER >= 0x10000000L)
+ const X509V3_EXT_METHOD *method;
+ #else
+ X509V3_EXT_METHOD *method;