From 6b884615538aef843f4c2f60686bcc9666576288 Mon Sep 17 00:00:00 2001 From: Ondrej Kozina Date: Thu, 21 Nov 2013 15:50:31 +0100 Subject: [PATCH] modify fips detection also in api-test --- tests/api-test.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/api-test.c b/tests/api-test.c index 1312b6f2..0a567836 100644 --- a/tests/api-test.c +++ b/tests/api-test.c @@ -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)