aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_testing_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-01-18 19:28:14 +0000
committerChristian Grothoff <christian@grothoff.org>2012-01-18 19:28:14 +0000
commit6b2fb63de633b086a91e7733ca0dd5591198c20c (patch)
treea6e69cfd3ebeb58f37a7c40e584fa3fd4a3c2eaf /src/include/gnunet_testing_lib.h
parent7393b25a78f3afb70bed4eb39c0e2db1a7010e4f (diff)
downloadgnunet-6b2fb63de633b086a91e7733ca0dd5591198c20c.tar.gz
gnunet-6b2fb63de633b086a91e7733ca0dd5591198c20c.zip
implementing GNUNET_TESTING_get_peer_identity (addressing #2083)
Diffstat (limited to 'src/include/gnunet_testing_lib.h')
-rw-r--r--src/include/gnunet_testing_lib.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/include/gnunet_testing_lib.h b/src/include/gnunet_testing_lib.h
index 711d676a2..03b837668 100644
--- a/src/include/gnunet_testing_lib.h
+++ b/src/include/gnunet_testing_lib.h
@@ -506,6 +506,20 @@ GNUNET_TESTING_test_daemon_running (struct GNUNET_TESTING_Daemon *daemon);
506 506
507 507
508/** 508/**
509 * Obtain the peer identity of the peer with the given configuration
510 * handle. This function reads the private key of the peer, obtains
511 * the public key and hashes it.
512 *
513 * @param cfg configuration of the peer
514 * @param pid where to store the peer identity
515 * @return GNUNET_OK on success, GNUNET_SYSERR on failure
516 */
517int
518GNUNET_TESTING_get_peer_identity (const struct GNUNET_CONFIGURATION_Handle *cfg,
519 struct GNUNET_PeerIdentity *pid);
520
521
522/**
509 * Restart (stop and start) a GNUnet daemon. 523 * Restart (stop and start) a GNUnet daemon.
510 * 524 *
511 * @param d the daemon that should be restarted 525 * @param d the daemon that should be restarted