]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
BEE Backport bacula/src/lib/org_lib_fips.c
authorEric Bollengier <eric@baculasystems.com>
Thu, 23 Apr 2020 14:54:33 +0000 (16:54 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 29 Apr 2021 08:44:17 +0000 (10:44 +0200)
This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Mar 4 15:41:15 2020 +0100

    Fix compilation of community version + move dedup configuration functions to external file

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Feb 26 10:22:42 2020 +0100

    Move fips procedures to bee files

bacula/src/lib/org_lib_fips.c [new file with mode: 0644]

diff --git a/bacula/src/lib/org_lib_fips.c b/bacula/src/lib/org_lib_fips.c
new file mode 100644 (file)
index 0000000..23297a0
--- /dev/null
@@ -0,0 +1,43 @@
+/*
+   Bacula(R) - The Network Backup Solution
+
+   Copyright (C) 2000-2020 Kern Sibbald
+
+   The original author of Bacula is Kern Sibbald, with contributions
+   from many others, a complete list can be found in the file AUTHORS.
+
+   You may use this file and others of this release according to the
+   license defined in the LICENSE file, which includes the Affero General
+   Public License, v3.0 ("AGPLv3") and some additional permissions and
+   terms pursuant to its AGPLv3 Section 7.
+
+   This notice must be preserved when any source code is
+   conveyed and/or propagated.
+
+   Bacula(R) is a registered trademark of Kern Sibbald.
+*/
+
+#include "bacula.h"
+
+bool crypto_check_digest(JCR *jcr, crypto_digest_t type)
+{
+   return true;
+}
+
+int crypto_check_fips(bool enable)
+{
+   if (enable) {
+      return -1;
+   }
+   return 0;
+}
+
+const char *crypto_get_fips_enabled()
+{
+   return "N/A";
+}
+
+bool crypto_get_fips()
+{
+   return false;
+}