aboutsummaryrefslogtreecommitdiff
path: root/src/secretsharing
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2014-01-07 00:27:50 +0000
committerFlorian Dold <florian.dold@gmail.com>2014-01-07 00:27:50 +0000
commit1155d3ee358c33bb091776e56c5229f59ec61ea2 (patch)
treeaea2ddc37e268b00ac7382f82531eade9ff723ac /src/secretsharing
parent53b2fa83304903045e08bcc2906346ac74f58c69 (diff)
downloadgnunet-1155d3ee358c33bb091776e56c5229f59ec61ea2.tar.gz
gnunet-1155d3ee358c33bb091776e56c5229f59ec61ea2.zip
- removing superfluous test cast, my fault
Diffstat (limited to 'src/secretsharing')
-rw-r--r--src/secretsharing/Makefile.am9
-rw-r--r--src/secretsharing/test_secretsharing_sig.c45
2 files changed, 1 insertions, 53 deletions
diff --git a/src/secretsharing/Makefile.am b/src/secretsharing/Makefile.am
index f2e14a60c..b875953ba 100644
--- a/src/secretsharing/Makefile.am
+++ b/src/secretsharing/Makefile.am
@@ -60,8 +60,7 @@ libgnunetsecretsharing_la_LDFLAGS = \
60 $(GN_LIB_LDFLAGS) 60 $(GN_LIB_LDFLAGS)
61 61
62check_PROGRAMS = \ 62check_PROGRAMS = \
63 test_secretsharing_api \ 63 test_secretsharing_api
64 test_secretsharing_sig
65 64
66if ENABLE_TEST_RUN 65if ENABLE_TEST_RUN
67TESTS = $(check_PROGRAMS) 66TESTS = $(check_PROGRAMS)
@@ -74,12 +73,6 @@ test_secretsharing_api_LDADD = \
74 $(top_builddir)/src/testing/libgnunettesting.la \ 73 $(top_builddir)/src/testing/libgnunettesting.la \
75 $(top_builddir)/src/secretsharing/libgnunetsecretsharing.la 74 $(top_builddir)/src/secretsharing/libgnunetsecretsharing.la
76 75
77test_secretsharing_sig_SOURCES = \
78 test_secretsharing_sig.c \
79 secretsharing_protocol.h
80test_secretsharing_sig_LDADD = \
81 $(top_builddir)/src/util/libgnunetutil.la
82
83EXTRA_DIST = \ 76EXTRA_DIST = \
84 test_secretsharing.conf 77 test_secretsharing.conf
85 78
diff --git a/src/secretsharing/test_secretsharing_sig.c b/src/secretsharing/test_secretsharing_sig.c
deleted file mode 100644
index da5f0a390..000000000
--- a/src/secretsharing/test_secretsharing_sig.c
+++ /dev/null
@@ -1,45 +0,0 @@
1/*
2 This file is part of GNUnet.
3 (C) 2013 Christian Grothoff (and other contributing authors)
4
5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; either version 3, or (at your
8 option) any later version.
9
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with GNUnet; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
19*/
20
21/**
22 * @file secretsharing/test_secretsharing_sig.c
23 * @brief ...
24 */
25#include "platform.h"
26#include "gnunet_util_lib.h"
27#include "gnunet_signatures.h"
28#include "secretsharing_protocol.h"
29
30
31int
32main (int argc, char **argv)
33{
34 struct GNUNET_SECRETSHARING_KeygenCommitData *d;
35 struct GNUNET_CRYPTO_EddsaPrivateKey *private_key;
36
37 private_key = GNUNET_CRYPTO_eddsa_key_create ();
38
39 d = GNUNET_malloc (sizeof *d);
40 d->purpose.size = htons ((sizeof *d) - offsetof (struct GNUNET_SECRETSHARING_KeygenCommitData, purpose));
41 d->purpose.purpose = htons (GNUNET_SIGNATURE_PURPOSE_SECRETSHARING_DKG1);
42 GNUNET_assert (GNUNET_OK == GNUNET_CRYPTO_eddsa_sign (private_key, &d->purpose, &d->signature));
43 return 0;
44}
45