X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Finclude%2Fgnunet_testing_lib.h;h=630152ddfffd5a3e84aad1cd63b4014205d45f2d;hb=6973ade884b8e22e7fcaa51a90d00a8caa2d2fa4;hp=04a3e99423dabc3d7228e6b2c26ba8c775a4c3ed;hpb=12125a5027fffe8fccf873b46c08f2c8cb1b96c6;p=oweals%2Fgnunet.git diff --git a/src/include/gnunet_testing_lib.h b/src/include/gnunet_testing_lib.h index 04a3e9942..630152ddf 100644 --- a/src/include/gnunet_testing_lib.h +++ b/src/include/gnunet_testing_lib.h @@ -44,7 +44,13 @@ extern "C" #endif #endif -#define GNUNET_TESTING_HOSTKEYFILESIZE 914 +/** + * Size of each hostkey in the hostkey file (in BYTES). This is the + * maximum length of the S-expressions generated by libgcrypt for the + * curves (rounded up to the next full KB to make IO nicer); it is NOT + * the number of bits in the key. + */ +#define GNUNET_TESTING_HOSTKEYFILESIZE 1024 /** * Handle for a system on which GNUnet peers are executed; @@ -138,7 +144,7 @@ GNUNET_TESTING_system_destroy (struct GNUNET_TESTING_System *system, * key; if NULL, GNUNET_SYSERR is returned immediately * @return NULL on error (not enough keys) */ -struct GNUNET_CRYPTO_RsaPrivateKey * +struct GNUNET_CRYPTO_EccPrivateKey * GNUNET_TESTING_hostkey_get (const struct GNUNET_TESTING_System *system, uint32_t key_number, struct GNUNET_PeerIdentity *id); @@ -220,7 +226,7 @@ GNUNET_TESTING_peer_configure (struct GNUNET_TESTING_System *system, * @param id identifier for the daemon, will be set */ void -GNUNET_TESTING_peer_get_identity (const struct GNUNET_TESTING_Peer *peer, +GNUNET_TESTING_peer_get_identity (struct GNUNET_TESTING_Peer *peer, struct GNUNET_PeerIdentity *id);