|
|
37aee9 |
diff -Naur bacula-9.0.6.old/src/lib/crypto.c bacula-9.0.6/src/lib/crypto.c
|
|
|
37aee9 |
--- bacula-9.0.6.old/src/lib/crypto.c 2017-12-07 15:42:03.771178189 +0100
|
|
|
37aee9 |
+++ bacula-9.0.6/src/lib/crypto.c 2017-12-07 15:42:25.300578772 +0100
|
|
|
37aee9 |
@@ -42,7 +42,7 @@
|
|
|
37aee9 |
* For OpenSSL version 1.x, EVP_PKEY_encrypt no longer
|
|
|
37aee9 |
* exists. It was not an official API.
|
|
|
37aee9 |
*/
|
|
|
37aee9 |
-#ifdef HAVE_OPENSSLv1
|
|
|
37aee9 |
+#if (OPENSSL_VERSION_NUMBER >= 0x10000000L)
|
|
|
37aee9 |
#define EVP_PKEY_encrypt EVP_PKEY_encrypt_old
|
|
|
37aee9 |
#define EVP_PKEY_decrypt EVP_PKEY_decrypt_old
|
|
|
37aee9 |
#endif
|
|
|
37aee9 |
diff -Naur bacula-9.0.6.old/src/lib/tls.c bacula-9.0.6/src/lib/tls.c
|
|
|
37aee9 |
--- bacula-9.0.6.old/src/lib/tls.c 2017-12-07 15:42:03.770178170 +0100
|
|
|
37aee9 |
+++ bacula-9.0.6/src/lib/tls.c 2017-12-07 15:42:26.891608376 +0100
|
|
|
37aee9 |
@@ -47,9 +47,6 @@
|
|
|
37aee9 |
|
|
|
37aee9 |
#include "openssl-compat.h"
|
|
|
37aee9 |
|
|
|
37aee9 |
-/* No anonymous ciphers, no <128 bit ciphers, no export ciphers, no MD5 ciphers */
|
|
|
37aee9 |
-#define TLS_DEFAULT_CIPHERS "ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH"
|
|
|
37aee9 |
-
|
|
|
37aee9 |
/* TLS Context Structure */
|
|
|
37aee9 |
struct TLS_Context {
|
|
|
37aee9 |
SSL_CTX *openssl;
|
|
|
37aee9 |
@@ -206,7 +203,7 @@
|
|
|
37aee9 |
SSL_CTX_set_options(ctx->openssl, SSL_OP_SINGLE_DH_USE);
|
|
|
37aee9 |
}
|
|
|
37aee9 |
|
|
|
37aee9 |
- if (SSL_CTX_set_cipher_list(ctx->openssl, TLS_DEFAULT_CIPHERS) != 1) {
|
|
|
37aee9 |
+ if (SSL_CTX_set_cipher_list(ctx->openssl, "PROFILE=SYSTEM") != 1) {
|
|
|
37aee9 |
Jmsg0(NULL, M_ERROR, 0,
|
|
|
37aee9 |
_("Error setting cipher list, no valid ciphers available\n"));
|
|
|
37aee9 |
goto err;
|
|
|
37aee9 |
@@ -328,7 +325,7 @@
|
|
|
37aee9 |
extname = OBJ_nid2sn(OBJ_obj2nid(X509_EXTENSION_get_object(ext)));
|
|
|
37aee9 |
|
|
|
37aee9 |
if (strcmp(extname, "subjectAltName") == 0) {
|
|
|
37aee9 |
-#ifdef HAVE_OPENSSLv1
|
|
|
37aee9 |
+#if (OPENSSL_VERSION_NUMBER >= 0x10000000L)
|
|
|
37aee9 |
const X509V3_EXT_METHOD *method;
|
|
|
37aee9 |
#else
|
|
|
37aee9 |
X509V3_EXT_METHOD *method;
|