From: Christian Grothoff Date: Sat, 9 Apr 2016 21:24:50 +0000 (+0000) Subject: fix ftbfs X-Git-Tag: initial-import-from-subversion-38251~962 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5dfcb058ab5db9ae0c4b147d8a99c64ca0980028;p=oweals%2Fgnunet.git fix ftbfs --- 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 ==