modify fips detection also in api-test

This commit is contained in:
Ondrej Kozina
2013-11-21 15:50:31 +01:00
committed by Milan Broz
parent 700b558fb6
commit 6b88461553

View File

@@ -123,6 +123,9 @@ static int fips_mode(void)
int fd; int fd;
char buf = 0; char buf = 0;
if (access("/etc/system-fips", F_OK))
return 0;
fd = open("/proc/sys/crypto/fips_enabled", O_RDONLY); fd = open("/proc/sys/crypto/fips_enabled", O_RDONLY);
if (fd < 0) if (fd < 0)