summaryrefslogtreecommitdiff
path: root/lib/fips.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2013-11-22 14:41:54 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2013-11-27 11:41:44 +0100
commit1c507e1b50767a6a249fe3f62e60209ba73ab49a (patch)
tree23ec7c310519404ab81f7f36fcf09a0f4a241fe7 /lib/fips.c
parent11d6cb2f1bee70ee68bf63e3c09877906e033283 (diff)
downloadgnutls-1c507e1b50767a6a249fe3f62e60209ba73ab49a.tar.gz
binary integrity self test moved to end
Diffstat (limited to 'lib/fips.c')
-rw-r--r--lib/fips.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/fips.c b/lib/fips.c
index 6587e8b921..7deef5a73e 100644
--- a/lib/fips.c
+++ b/lib/fips.c
@@ -237,13 +237,7 @@ int _gnutls_fips_perform_self_checks(void)
gnutls_assert();
goto error;
}
-
- ret = check_binary_integrity();
- if (ret == 0) {
- gnutls_assert();
- goto error;
- }
-
+
if (_gnutls_rnd_ops.self_test == NULL) {
gnutls_assert();
goto error;
@@ -255,6 +249,12 @@ int _gnutls_fips_perform_self_checks(void)
goto error;
}
+ ret = check_binary_integrity();
+ if (ret == 0) {
+ gnutls_assert();
+ goto error;
+ }
+
return 0;
error:
_gnutls_switch_fips_state(FIPS_STATE_ERROR);