diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-02-28 19:08:20 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-02-28 19:08:20 +0000 |
commit | 8225f4ac99dcf5b02258d10b88e9fb32543e8a7f (patch) | |
tree | 5e91a73278a9a82cb859bd1e5c74b795381d15e0 /src/include/gnunet_crypto_lib.h | |
parent | 1a9c0bd3293015faa8c2e9d552706227ea2cf170 (diff) | |
download | gnunet-8225f4ac99dcf5b02258d10b88e9fb32543e8a7f.tar.gz gnunet-8225f4ac99dcf5b02258d10b88e9fb32543e8a7f.zip |
adding GNUNET_CRYPTO_setup_hostkey to setup a hostkey ahead of time, using this function in the VPN testcases to avoid timeouts in cases where creating a hostkey just takes too long --- such as on our UltraSprac
Diffstat (limited to 'src/include/gnunet_crypto_lib.h')
-rw-r--r-- | src/include/gnunet_crypto_lib.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h index 6e37266a2..63d3ee418 100644 --- a/src/include/gnunet_crypto_lib.h +++ b/src/include/gnunet_crypto_lib.h | |||
@@ -764,6 +764,18 @@ GNUNET_CRYPTO_rsa_key_create_from_file (const char *filename); | |||
764 | 764 | ||
765 | 765 | ||
766 | /** | 766 | /** |
767 | * Setup a hostkey file for a peer given the name of the | ||
768 | * configuration file (!). This function is used so that | ||
769 | * at a later point code can be certain that reading a | ||
770 | * hostkey is fast (for example in time-dependent testcases). | ||
771 | * | ||
772 | * @param cfg_name name of the configuration file to use | ||
773 | */ | ||
774 | void | ||
775 | GNUNET_CRYPTO_setup_hostkey (const char *cfg_name); | ||
776 | |||
777 | |||
778 | /** | ||
767 | * Deterministically (!) create a private key using only the | 779 | * Deterministically (!) create a private key using only the |
768 | * given HashCode as input to the PRNG. | 780 | * given HashCode as input to the PRNG. |
769 | * | 781 | * |