Blame SOURCES/bacula-5.0.2-openssl.patch

46d793
diff -up bacula-5.0.2/bacula-5.0.2/src/lib/crypto.c.openssl bacula-5.0.2/bacula-5.0.2/src/lib/crypto.c
46d793
--- bacula-5.0.2/bacula-5.0.2/src/lib/crypto.c.openssl	2010-04-27 21:58:29.000000000 +0200
46d793
+++ bacula-5.0.2/bacula-5.0.2/src/lib/crypto.c	2010-06-01 17:51:52.846894465 +0200
46d793
@@ -51,7 +51,7 @@
46d793
  * For OpenSSL version 1.x, EVP_PKEY_encrypt no longer
46d793
  *  exists.  It was not an official API.
46d793
  */
46d793
-#ifdef HAVE_OPENSSLv1
46d793
+#if (OPENSSL_VERSION_NUMBER >= 0x10000000L)
46d793
 #define EVP_PKEY_encrypt EVP_PKEY_encrypt_old
46d793
 #define EVP_PKEY_decrypt EVP_PKEY_decrypt_old
46d793
 #endif
46d793
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
46d793
--- bacula-5.0.2/bacula-5.0.2/src/lib/tls.c.openssl	2010-04-27 21:58:29.000000000 +0200
46d793
+++ bacula-5.0.2/bacula-5.0.2/src/lib/tls.c	2010-06-01 17:52:15.535769446 +0200
46d793
@@ -315,7 +315,7 @@ bool tls_postconnect_verify_host(JCR *jc
46d793
          extname = OBJ_nid2sn(OBJ_obj2nid(X509_EXTENSION_get_object(ext)));
46d793
 
46d793
          if (strcmp(extname, "subjectAltName") == 0) {
46d793
-#ifdef HAVE_OPENSSLv1
46d793
+#if (OPENSSL_VERSION_NUMBER >= 0x10000000L)
46d793
             const X509V3_EXT_METHOD *method;
46d793
 #else
46d793
             X509V3_EXT_METHOD *method;