diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2013-11-22 14:41:54 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2013-11-27 11:41:44 +0100 |
commit | 1c507e1b50767a6a249fe3f62e60209ba73ab49a (patch) | |
tree | 23ec7c310519404ab81f7f36fcf09a0f4a241fe7 /lib/fips.c | |
parent | 11d6cb2f1bee70ee68bf63e3c09877906e033283 (diff) | |
download | gnutls-1c507e1b50767a6a249fe3f62e60209ba73ab49a.tar.gz |
binary integrity self test moved to end
Diffstat (limited to 'lib/fips.c')
-rw-r--r-- | lib/fips.c | 14 |
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); |