summaryrefslogtreecommitdiff
path: root/tests/dh-params.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dh-params.c')
-rw-r--r--tests/dh-params.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/tests/dh-params.c b/tests/dh-params.c
index 54bce137c7..e17cdd7c53 100644
--- a/tests/dh-params.c
+++ b/tests/dh-params.c
@@ -22,7 +22,7 @@
/* This program tests functionality in gnutls_dh_params structure */
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <gnutls/gnutls.h>
@@ -34,7 +34,7 @@
#include "cert-common.h"
#include "utils.h"
-static int compare(gnutls_datum_t * d1, gnutls_datum_t * d2)
+static int compare(gnutls_datum_t *d1, gnutls_datum_t *d2)
{
gnutls_datum_t t1, t2;
t1.data = d1->data;
@@ -73,8 +73,8 @@ void doit(void)
assert(gnutls_dh_params_init(&tmp_params) >= 0);
assert(gnutls_x509_privkey_init(&privkey) >= 0);
- ret =
- gnutls_x509_privkey_import(privkey, &dsa_key, GNUTLS_X509_FMT_PEM);
+ ret = gnutls_x509_privkey_import(privkey, &dsa_key,
+ GNUTLS_X509_FMT_PEM);
if (ret < 0)
fail("error in %s: %d\n", __FILE__, __LINE__);
@@ -89,9 +89,8 @@ void doit(void)
if (ret < 0)
fail("error in %s: %d\n", __FILE__, __LINE__);
- ret =
- gnutls_x509_privkey_export_dsa_raw(privkey, &p2, &q, &g2, NULL,
- NULL);
+ ret = gnutls_x509_privkey_export_dsa_raw(privkey, &p2, &q, &g2, NULL,
+ NULL);
if (ret < 0)
fail("error in %s: %d\n", __FILE__, __LINE__);