[svn] gcry - r1333 - trunk/src
svn author wk
cvs at cvs.gnupg.org
Mon Sep 15 21:36:07 CEST 2008
Author: wk
Date: 2008-09-15 21:36:07 +0200 (Mon, 15 Sep 2008)
New Revision: 1333
Modified:
trunk/src/ChangeLog
trunk/src/fips.c
Log:
Log a failed intgetrity check with filename.
Modified: trunk/src/ChangeLog
===================================================================
--- trunk/src/ChangeLog 2008-09-15 19:21:57 UTC (rev 1332)
+++ trunk/src/ChangeLog 2008-09-15 19:36:07 UTC (rev 1333)
@@ -4,6 +4,7 @@
(_gcry_initialize_fips_mode, lock_fsm, unlock_fsm)
(_gcry_fips_signal_error, fips_new_state)
(_gcry_fips_noreturn) [HAVE_SYSLOG]: Also log via syslog.
+ (check_binary_integrity) [HAVE_SYSLOG]: Log failure.
* global.h [HAVE_SYSLOG]: Include syslog.h.
(_gcry_global_is_operational) [HAVE_SYSLOG]: Print warning.
Modified: trunk/src/fips.c
===================================================================
--- trunk/src/fips.c 2008-09-15 19:21:57 UTC (rev 1332)
+++ trunk/src/fips.c 2008-09-15 19:36:07 UTC (rev 1333)
@@ -565,6 +565,12 @@
}
}
reporter ("binary", 0, fname, err? gpg_strerror (err):NULL);
+#ifdef HAVE_SYSLOG
+ if (err)
+ syslog (LOG_USER|LOG_ERR, "Libgcrypt error: "
+ "integrity check on `%s' failed: %s",
+ fname? fname:"[?]", gpg_strerror (err));
+#endif /*HAVE_SYSLOG*/
gcry_free (fname);
return !!err;
#else
More information about the Gnupg-commits
mailing list