diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-06-08 11:38:54 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-06-08 11:39:53 +0200 |
commit | 2ae9c810f057d15e6685e4604407d64137e3efb2 (patch) | |
tree | c27e8926bdb28427fe5da0f605175ddb70553f60 /lib | |
parent | e2878025ab1381b6a035a8edb2c88938265456ca (diff) | |
download | gnutls-2ae9c810f057d15e6685e4604407d64137e3efb2.tar.gz |
fips140: better debug messages when verifying MAC
Diffstat (limited to 'lib')
-rw-r--r-- | lib/fips.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/fips.c b/lib/fips.c index 7c4b4b994b..565976e4af 100644 --- a/lib/fips.c +++ b/lib/fips.c @@ -216,7 +216,6 @@ static unsigned check_binary_integrity(const char* libname, const char* symbol) ret = gnutls_load_file(mac_file, &data); if (ret < 0) { - _gnutls_debug_log("Could not open %s for MAC testing: %s\n", mac_file, gnutls_strerror(ret)); get_hmac_file2(mac_file, sizeof(mac_file), file); ret = gnutls_load_file(mac_file, &data); if (ret < 0) { @@ -239,7 +238,7 @@ static unsigned check_binary_integrity(const char* libname, const char* symbol) _gnutls_debug_log("Calculated MAC for %s does not match\n", libname); return gnutls_assert_val(0); } - _gnutls_debug_log("Successfully verified library MAC for %s\n", libname); + _gnutls_debug_log("Successfully verified MAC for %s (%s)\n", mac_file, libname); return 1; } |