[git] GCRYPT - branch, master, updated. libgcrypt-1.5.0-376-g7b26586
by Jussi Kivilinna
cvs at cvs.gnupg.org
Sun Nov 10 20:36:46 CET 2013
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU crypto library".
The branch, master has been updated
via 7b26586e35a6d407ca31b41528b0810b1408fd4b (commit)
from df29831d008e32faf74091d080a415731418d158 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 7b26586e35a6d407ca31b41528b0810b1408fd4b
Author: Jussi Kivilinna <jussi.kivilinna at iki.fi>
Date: Sun Nov 10 21:32:29 2013 +0200
Fix error output in CTR selftest
* cipher/cipher-selftest.c (_gcry_selftest_helper_ctr): Change
fprintf(stderr,...) to syslog(); Correct error output for bulk
IV check, plaintext mismatch => ciphertext mismatch.
--
The 'fprintf's were debugging leftover that leaked into commit.
Signed-off-by: Jussi Kivilinna <jussi.kivilinna at iki.fi>
diff --git a/cipher/cipher-selftest.c b/cipher/cipher-selftest.c
index 8e58150..bc8cf98 100644
--- a/cipher/cipher-selftest.c
+++ b/cipher/cipher-selftest.c
@@ -395,7 +395,7 @@ _gcry_selftest_helper_ctr (const char *cipher, gcry_cipher_setkey_t setkey_func,
gcry_free (mem);
#ifdef HAVE_SYSLOG
syslog (LOG_USER|LOG_WARNING, "Libgcrypt warning: "
- "%s-CTR-%d test failed (plaintext mismatch, bulk)", cipher,
+ "%s-CTR-%d test failed (ciphertext mismatch, bulk)", cipher,
blocksize * 8);
#endif
return "selftest for CTR failed - see syslog for details";
@@ -447,7 +447,7 @@ _gcry_selftest_helper_ctr (const char *cipher, gcry_cipher_setkey_t setkey_func,
{
gcry_free (mem);
#ifdef HAVE_SYSLOG
- fprintf(stderr, "Libgcrypt warning: "
+ syslog (LOG_USER|LOG_WARNING, "Libgcrypt warning: "
"%s-CTR-%d test failed (plaintext mismatch, diff: %d)", cipher,
blocksize * 8, diff);
#endif
@@ -457,7 +457,7 @@ _gcry_selftest_helper_ctr (const char *cipher, gcry_cipher_setkey_t setkey_func,
{
gcry_free (mem);
#ifdef HAVE_SYSLOG
- fprintf(stderr, "Libgcrypt warning: "
+ syslog (LOG_USER|LOG_WARNING, "Libgcrypt warning: "
"%s-CTR-%d test failed (IV mismatch, diff: %d)", cipher,
blocksize * 8, diff);
#endif
-----------------------------------------------------------------------
Summary of changes:
cipher/cipher-selftest.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
hooks/post-receive
--
The GNU crypto library
http://git.gnupg.org
More information about the Gnupg-commits
mailing list