summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2008-09-16 19:22:10 +0000
committerWerner Koch <wk@gnupg.org>2008-09-16 19:22:10 +0000
commit58b91cf9cc72e7a7247f88279e3fbeba71619237 (patch)
treec6eb3d0028a8e937e918fb423f177e5388b22209 /src
parentad1181839f2db1afbe0af6945355de30b7e2d7f4 (diff)
downloadlibgcrypt-58b91cf9cc72e7a7247f88279e3fbeba71619237.tar.gz
Another tweak for the RNG test code.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog2
-rw-r--r--src/global.c5
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 04327cb0..b96f8bb7 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,7 @@
2008-09-16 Werner Koch <wk@g10code.com>
+ * global.c (print_config): Use y/n for fips mode.
+
* fips.c (fips_new_state): Allow transition to Error and
Fatal-error from Init.
diff --git a/src/global.c b/src/global.c
index ce54f0d3..4af7412a 100644
--- a/src/global.c
+++ b/src/global.c
@@ -294,7 +294,10 @@ print_config ( int (*fnc)(FILE *fp, const char *format, ...), FILE *fp)
if ( (hwf & hwflist[i].flag) )
fnc (fp, "%s:", hwflist[i].desc);
fnc (fp, "\n");
- fnc (fp, "fips-mode:%d:\n", fips_mode () );
+ /* We use y/n instead of 1/0 for the simple reason that Emacsen's
+ compile error parser would accidently flag that line when printed
+ during "make check" as an error. */
+ fnc (fp, "fips-mode:%c:\n", fips_mode ()? 'y':'n' );
}