summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-04-09 21:24:50 +0000
committerChristian Grothoff <christian@grothoff.org>2016-04-09 21:24:50 +0000
commit5dfcb058ab5db9ae0c4b147d8a99c64ca0980028 (patch)
tree98a2779afe44cce99c50c688c0a186f764fd39c0
parent26852f8f658a38a7e3a5f47e5eb2057080eec3b8 (diff)
fix ftbfs
-rw-r--r--src/json/Makefile.am4
-rw-r--r--src/json/test_json.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/src/json/Makefile.am b/src/json/Makefile.am
index d874d7507..da19e7955 100644
--- a/src/json/Makefile.am
+++ b/src/json/Makefile.am
@@ -14,7 +14,7 @@ libgnunetjson_la_LDFLAGS = \
-no-undefined
libgnunetjson_la_SOURCES = \
json.c \
- json_mhd.c \
+ json_mhd.c \
json_generator.c \
json_helper.c
libgnunetjson_la_LIBADD = \
@@ -32,5 +32,5 @@ test_json_SOURCES = \
test_json.c
test_json_LDADD = \
libgnunetjson.la \
- -lgnunetutil \
+ $(top_builddir)/src/util/libgnunetutil.la \
-ljansson
diff --git a/src/json/test_json.c b/src/json/test_json.c
index 6f1ca565a..09a154678 100644
--- a/src/json/test_json.c
+++ b/src/json/test_json.c
@@ -163,15 +163,15 @@ test_rsa ()
GNUNET_JSON_spec_end()
};
struct GNUNET_CRYPTO_RsaPrivateKey *priv;
- char msg[] = "Hello";
+ struct GNUNET_HashCode msg;
json_t *jp;
json_t *js;
priv = GNUNET_CRYPTO_rsa_private_key_create (1024);
pub = GNUNET_CRYPTO_rsa_private_key_get_public (priv);
- sig = GNUNET_CRYPTO_rsa_sign (priv,
- msg,
- sizeof (msg));
+ memset (&msg, 42, sizeof (msg));
+ sig = GNUNET_CRYPTO_rsa_sign_fdh (priv,
+ &msg);
GNUNET_assert (NULL != (jp = GNUNET_JSON_from_rsa_public_key (pub)));
GNUNET_assert (NULL != (js = GNUNET_JSON_from_rsa_signature (sig)));
GNUNET_assert (GNUNET_OK ==