Do not load own OpenSSL backend context in FIPS mode.

In the FIPS mode keep configuration up to the system wide config.
This commit is contained in:
Milan Broz
2021-09-13 19:45:05 +02:00
parent 29ea07ef66
commit f8eb7b225a
10 changed files with 37 additions and 28 deletions

View File

@@ -227,7 +227,7 @@ int init_crypto(struct crypt_device *ctx)
return r;
}
r = crypt_backend_init();
r = crypt_backend_init(crypt_fips_mode());
if (r < 0)
log_err(ctx, _("Cannot initialize crypto backend."));