GNUNET_GETOPT_OPTION_END
};
- return (GNUNET_OK == GNUNET_PROGRAM_run (argc, argv, "ct",
+ if (GNUNET_OK == GNUNET_PROGRAM_run (argc, argv, "ct",
"ct", options,
- &run, NULL));
+ &run, NULL))
+ return 0;
+ else
+ return 1;
}
BOB_KEY=$(gnunet-identity -d -c test_idp.conf | grep bob | awk '{print $3}')
EVE_KEY=$(gnunet-identity -d -c test_idp.conf | grep eve | awk '{print $3}')
-gnunet-idp -e alice -a email -V john@doe.gnu -c test_idp.conf
-gnunet-idp -e alice -a name -V John -c test_idp.conf
+gnunet-idp -e alice -E 1s -a email -V john@doe.gnu -c test_idp.conf
+gnunet-idp -e alice -E 1s -a name -V John -c test_idp.conf
TICKET_BOB=$(gnunet-idp -e alice -i "email,name" -r $BOB_KEY -c test_idp.conf | awk '{print $1}')
#gnunet-idp -e bob -C $TICKET_BOB -c test_idp.conf
TICKET_EVE=$(gnunet-idp -e alice -i "email" -r $EVE_KEY -c test_idp.conf | awk '{print $1}')
-
#echo "Consuming $TICKET"
#gnunet-idp -e eve -C $TICKET_EVE -c test_idp.conf
gnunet-idp -e alice -R $TICKET_EVE -c test_idp.conf
+sleep 2
+
gnunet-idp -e eve -C $TICKET_EVE -c test_idp.conf > /dev/null 2>&1
if test $? == 0
then