From: Eric Bollengier Date: Thu, 23 Apr 2020 14:54:33 +0000 (+0200) Subject: BEE Backport bacula/src/lib/org_lib_fips.c X-Git-Tag: Release-11.3.2~1774 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ccc7cf3e617fbb5cbf2a5d83bab9291807525542;p=thirdparty%2Fbacula.git BEE Backport bacula/src/lib/org_lib_fips.c This commit is the result of the squash of the following main commits: Author: Eric Bollengier Date: Wed Mar 4 15:41:15 2020 +0100 Fix compilation of community version + move dedup configuration functions to external file Author: Eric Bollengier Date: Wed Feb 26 10:22:42 2020 +0100 Move fips procedures to bee files --- diff --git a/bacula/src/lib/org_lib_fips.c b/bacula/src/lib/org_lib_fips.c new file mode 100644 index 0000000000..23297a0f40 --- /dev/null +++ b/bacula/src/lib/org_lib_fips.c @@ -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; +}