|
|
13b78d |
diff -Naur bacula-11.0.1.old/src/lib/crypto.c bacula-11.0.1/src/lib/crypto.c
|
|
|
13b78d |
--- bacula-11.0.1.old/src/lib/crypto.c 2021-02-11 14:08:38.220885976 +0100
|
|
|
13b78d |
+++ bacula-11.0.1/src/lib/crypto.c 2021-02-11 14:08:42.518956898 +0100
|
|
|
13b78d |
@@ -42,7 +42,7 @@
|
|
|
13b78d |
* For OpenSSL version 1.x, EVP_PKEY_encrypt no longer
|
|
|
13b78d |
* exists. It was not an official API.
|
|
|
13b78d |
*/
|
|
|
13b78d |
-#ifdef HAVE_OPENSSLv1
|
|
|
13b78d |
+#if (OPENSSL_VERSION_NUMBER >= 0x10000000L)
|
|
|
13b78d |
#define EVP_PKEY_encrypt EVP_PKEY_encrypt_old
|
|
|
13b78d |
#define EVP_PKEY_decrypt EVP_PKEY_decrypt_old
|
|
|
13b78d |
#endif
|
|
|
13b78d |
diff -Naur bacula-11.0.1.old/src/lib/tls.c bacula-11.0.1/src/lib/tls.c
|
|
|
13b78d |
--- bacula-11.0.1.old/src/lib/tls.c 2021-02-11 14:08:38.218885943 +0100
|
|
|
13b78d |
+++ bacula-11.0.1/src/lib/tls.c 2021-02-11 14:08:42.565957674 +0100
|
|
|
13b78d |
@@ -47,9 +47,6 @@
|
|
|
13b78d |
|
|
|
13b78d |
#include "openssl-compat.h"
|
|
|
13b78d |
|
|
|
13b78d |
-/* No anonymous ciphers, no <128 bit ciphers, no export ciphers, no MD5 ciphers */
|
|
|
13b78d |
-#define TLS_DEFAULT_CIPHERS "ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH"
|
|
|
13b78d |
-
|
|
|
13b78d |
/* TLS Context Structure */
|
|
|
13b78d |
struct TLS_Context {
|
|
|
13b78d |
SSL_CTX *openssl;
|
|
|
13b78d |
@@ -350,7 +347,7 @@
|
|
|
13b78d |
SSL_CTX_set_options(ctx->openssl, SSL_OP_SINGLE_DH_USE);
|
|
|
13b78d |
}
|
|
|
13b78d |
|
|
|
13b78d |
- if (SSL_CTX_set_cipher_list(ctx->openssl, TLS_DEFAULT_CIPHERS) != 1) {
|
|
|
13b78d |
+ if (SSL_CTX_set_cipher_list(ctx->openssl, "PROFILE=SYSTEM") != 1) {
|
|
|
13b78d |
Jmsg0(NULL, M_ERROR, 0,
|
|
|
13b78d |
_("Error setting cipher list, no valid ciphers available\n"));
|
|
|
13b78d |
goto err;
|
|
|
13b78d |
@@ -551,7 +548,7 @@
|
|
|
13b78d |
extname = OBJ_nid2sn(OBJ_obj2nid(X509_EXTENSION_get_object(ext)));
|
|
|
13b78d |
|
|
|
13b78d |
if (strcmp(extname, "subjectAltName") == 0) {
|
|
|
13b78d |
-#ifdef HAVE_OPENSSLv1
|
|
|
13b78d |
+#if (OPENSSL_VERSION_NUMBER >= 0x10000000L)
|
|
|
13b78d |
const X509V3_EXT_METHOD *method;
|
|
|
13b78d |
#else
|
|
|
13b78d |
X509V3_EXT_METHOD *method;
|