From 5dfcb058ab5db9ae0c4b147d8a99c64ca0980028 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 9 Apr 2016 21:24:50 +0000 Subject: fix ftbfs --- src/json/Makefile.am | 4 ++-- src/json/test_json.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src') 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 == -- cgit v1.2.3