TEST_ATTR="test"
gnunet-arm -s -c test_idp.conf
gnunet-identity -C testego -c test_idp.conf
-$DO_TIMEOUT valgrind gnunet-idp -e testego --init -c test_idp.conf
-$DO_TIMEOUT valgrind gnunet-idp -e testego -a email -V john@doe.gnu -c test_idp.conf
-STATUS=$?
-gnunet-namestore -z testego -D -c test_idp.conf
-$DO_TIMEOUT valgrind --leak-check=full gnunet-idp -e testego -D -c test_idp.conf
-
-if test $? != 0
-then
- echo "Error issuing..."
- exit 1
-fi
-#Try import
-gnunet-arm -e -c test_idp_lookup.conf
-exit $RES
+gnunet-idp -e testego --init -c test_idp.conf
+gnunet-idp -e testego -a email -V john@doe.gnu -c test_idp.conf
+gnunet-idp -e testego -D -c test_idp.conf
+gnunet-arm -e -c test_idp.conf
key->msk = bswabe_msk_serialize(msk);
GNUNET_assert (NULL != key->pub);
GNUNET_assert (NULL != key->msk);
- bswabe_pub_free (pub);
bswabe_msk_free (msk);
return key;
}
prv_key->prv = bswabe_prv_serialize(prv);
prv_key->pub = bswabe_pub_serialize (pub);
GNUNET_assert (NULL != prv_key->prv);
+ //Memory management in bswabe is buggy
+ //bswabe_prv_free (prv);
bswabe_msk_free (msk);
return prv_key;
}
if( !bswabe_dec(pub, prv, cph, m) ) {
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"%s\n", bswabe_error());
+ bswabe_cph_free(cph);
return GNUNET_SYSERR;
}
bswabe_cph_free(cph);
g_byte_array_free(aes_buf, 1);
*result = GNUNET_malloc (plt->len);
GNUNET_memcpy (*result, plt->data, plt->len);
- bswabe_prv_free (prv);
+ //freeing is buggy in bswabe
+ //bswabe_prv_free (prv);
bswabe_pub_free (pub);
return pt_size;
}