diff --git a/bacula-5.0.2-openssl.patch b/bacula-5.0.2-openssl.patch index b0fcf82..5040fe2 100644 --- a/bacula-5.0.2-openssl.patch +++ b/bacula-5.0.2-openssl.patch @@ -6,7 +6,7 @@ diff -up bacula-5.0.2/bacula-5.0.2/src/lib/crypto.c.openssl bacula-5.0.2/bacula- * exists. It was not an official API. */ -#ifdef HAVE_OPENSSLv1 -+#ifdef OPENSSL_VERSION_NUMBER >= 0x10000000L ++#if (OPENSSL_VERSION_NUMBER >= 0x10000000L) #define EVP_PKEY_encrypt EVP_PKEY_encrypt_old #define EVP_PKEY_decrypt EVP_PKEY_decrypt_old #endif @@ -18,7 +18,7 @@ diff -up bacula-5.0.2/bacula-5.0.2/src/lib/tls.c.openssl bacula-5.0.2/bacula-5.0 if (strcmp(extname, "subjectAltName") == 0) { -#ifdef HAVE_OPENSSLv1 -+#ifdef OPENSSL_VERSION_NUMBER >= 0x10000000L ++#if (OPENSSL_VERSION_NUMBER >= 0x10000000L) const X509V3_EXT_METHOD *method; #else X509V3_EXT_METHOD *method; diff --git a/bacula.spec b/bacula.spec index d5fd1dd..7945bf8 100644 --- a/bacula.spec +++ b/bacula.spec @@ -8,7 +8,7 @@ Summary: Cross platform network backup for Linux, Unix, Mac and Windows Name: bacula Version: 5.0.3 -Release: 1%{?dist} +Release: 2%{?dist} # See LICENSE for details License: GPLv2 with exceptions Group: System Environment/Daemons @@ -1006,6 +1006,9 @@ fi %changelog +* Thu Sep 23 2010 Jan Görig - 5.0.3-2 +- fixed openssl patch, thanks to Enrico Scholz + * Tue Aug 10 2010 Jon Ciesla - 5.0.3-1 - New upstream. - DSOlink fix for same.