Remove fips argument from crypt_backend_init()

It is really not needed, as it is detected automagically.
This commit is contained in:
Milan Broz
2025-11-13 21:29:51 +01:00
parent e609c47916
commit e4c498d15b
10 changed files with 12 additions and 15 deletions

View File

@@ -205,12 +205,12 @@ static const char *openssl_backend_version(void)
}
#endif
int crypt_backend_init(bool fips)
int crypt_backend_init(void)
{
if (crypto_backend_initialised)
return 0;
if (openssl_backend_init(fips))
if (openssl_backend_init(crypt_fips_mode()))
return -EINVAL;
crypto_backend_initialised = 1;