mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-12 03:10:08 +01:00
modify fips detection also in api-test
This commit is contained in:
committed by
Milan Broz
parent
700b558fb6
commit
6b88461553
@@ -123,6 +123,9 @@ static int fips_mode(void)
|
||||
int fd;
|
||||
char buf = 0;
|
||||
|
||||
if (access("/etc/system-fips", F_OK))
|
||||
return 0;
|
||||
|
||||
fd = open("/proc/sys/crypto/fips_enabled", O_RDONLY);
|
||||
|
||||
if (fd < 0)
|
||||
|
||||
Reference in New Issue
Block a user