[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] GNU gnutls branch, master, updated. gnutls_2_11_3-14-g4e3b72b
From: |
Simon Josefsson |
Subject: |
[SCM] GNU gnutls branch, master, updated. gnutls_2_11_3-14-g4e3b72b |
Date: |
Thu, 14 Oct 2010 20:30:27 +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=4e3b72b5f159f072c8aea584342cf1d0e6efec4a
The branch, master has been updated
via 4e3b72b5f159f072c8aea584342cf1d0e6efec4a (commit)
from 0e765c6a84d488936a07f8f2968d68d312b57e56 (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 4e3b72b5f159f072c8aea584342cf1d0e6efec4a
Author: Simon Josefsson <address@hidden>
Date: Thu Oct 14 22:30:23 2010 +0200
Add self test gendh to check DH generation.
-----------------------------------------------------------------------
Summary of changes:
tests/Makefile.am | 2 +-
tests/{init_roundtrip.c => gendh.c} | 25 ++++++++++---------------
2 files changed, 11 insertions(+), 16 deletions(-)
copy tests/{init_roundtrip.c => gendh.c} (70%)
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 875173e..4a42a09 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -60,7 +60,7 @@ ctests = simple gc set_pkcs12_cred certder certuniqueid mpi
\
crq_key_id x509sign-verify cve-2009-1415 cve-2009-1416 \
crq_apis init_roundtrip pkcs12_s2k_pem dn2 mini-eagain \
nul-in-x509-names x509_altname pkcs12_encode mini-x509 \
- mini-x509-rehandshake
+ mini-x509-rehandshake gendh
if ENABLE_OPENSSL
ctests += openssl
diff --git a/tests/init_roundtrip.c b/tests/gendh.c
similarity index 70%
copy from tests/init_roundtrip.c
copy to tests/gendh.c
index f992273..e3732bb 100644
--- a/tests/init_roundtrip.c
+++ b/tests/gendh.c
@@ -1,6 +1,5 @@
/*
- * Copyright (C) 2004, 2005, 2008, 2009, 2010 Free Software Foundation,
- * Inc.
+ * Copyright (C) 2010 Free Software Foundation, Inc.
*
* Author: Simon Josefsson
*
@@ -29,25 +28,21 @@
#include "utils.h"
-/* See <http://bugs.gentoo.org/272388>. */
-
void
doit (void)
{
- int res;
+ gnutls_dh_params_t dh_params = NULL;
+ int rc;
- res = gnutls_global_init ();
- if (res != 0)
+ rc = gnutls_global_init ();
+ if (rc)
fail ("gnutls_global_init\n");
- gnutls_global_deinit ();
-
- res = gnutls_global_init ();
- if (res != 0)
- fail ("gnutls_global_init2\n");
+ if (gnutls_dh_params_init (&dh_params) < 0)
+ fail ("Error in dh parameter initialization\n");
- gnutls_global_deinit ();
+ if (gnutls_dh_params_generate2 (dh_params, 1024) < 0)
+ fail ("Error in prime generation\n");
- if (debug)
- success ("init-deinit round-trip success\n");
+ success ("generated DH params OK\n");
}
hooks/post-receive
--
GNU gnutls
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] GNU gnutls branch, master, updated. gnutls_2_11_3-14-g4e3b72b,
Simon Josefsson <=