[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] GNU gnutls branch, master, updated. gnutls_2_9_7-43-g293d9ba
From: |
Simon Josefsson |
Subject: |
[SCM] GNU gnutls branch, master, updated. gnutls_2_9_7-43-g293d9ba |
Date: |
Mon, 02 Nov 2009 10:25:59 +0000 |
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 "GNU gnutls".
http://git.savannah.gnu.org/cgit/gnutls.git/commit/?id=293d9ba46f66a2d80f13cf87fe31db4eda9c61a7
The branch, master has been updated
via 293d9ba46f66a2d80f13cf87fe31db4eda9c61a7 (commit)
from 1d8288977316750e97b706ee537abe15bf94bd2b (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 293d9ba46f66a2d80f13cf87fe31db4eda9c61a7
Author: Simon Josefsson <address@hidden>
Date: Mon Nov 2 11:25:27 2009 +0100
Fix time bomb in chainverify self-test.
Reported by Andreas Metzler <address@hidden>
in <http://thread.gmane.org/gmane.comp.encryption.gpg.gnutls.devel/3925>.
-----------------------------------------------------------------------
Summary of changes:
tests/chainverify.c | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/tests/chainverify.c b/tests/chainverify.c
index 19b27eb..13d4710 100644
--- a/tests/chainverify.c
+++ b/tests/chainverify.c
@@ -32,6 +32,21 @@
#include <gnutls/gnutls.h>
#include <gnutls/x509.h>
+/* GnuTLS internally calls time() to find out the current time when
+ verifying certificates. To avoid a time bomb, we hard code the
+ current time. This should work fine on systems where the library
+ call to time is resolved at run-time. */
+time_t
+time (time_t *t)
+{
+ time_t then = 1256803113;
+
+ if (t)
+ *t = then;
+
+ return then;
+}
+
/* *INDENT-OFF* */
/* Triggers incorrect verification success on older versions */
hooks/post-receive
--
GNU gnutls
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] GNU gnutls branch, master, updated. gnutls_2_9_7-43-g293d9ba,
Simon Josefsson <=