diff options
author | Florian Dold <florian.dold@gmail.com> | 2013-04-27 11:04:29 +0000 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2013-04-27 11:04:29 +0000 |
commit | 00196642a7a8e400a054bd0a9c3b35b24be87a78 (patch) | |
tree | 7733d2a156a8468019ec7dc52e5fc36ec0a21c03 /src/include/gnunet_crypto_lib.h | |
parent | d0dd9f2c530ae5df86fb4180b3107892d34031ed (diff) | |
download | gnunet-00196642a7a8e400a054bd0a9c3b35b24be87a78.tar.gz gnunet-00196642a7a8e400a054bd0a9c3b35b24be87a78.zip |
implemented GNUNET_CRYPTO_get_host_identity
Diffstat (limited to 'src/include/gnunet_crypto_lib.h')
-rw-r--r-- | src/include/gnunet_crypto_lib.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h index bfb514247..a3c4e999f 100644 --- a/src/include/gnunet_crypto_lib.h +++ b/src/include/gnunet_crypto_lib.h | |||
@@ -1327,6 +1327,19 @@ GNUNET_CRYPTO_ecc_setup_hostkey (const char *cfg_name); | |||
1327 | 1327 | ||
1328 | 1328 | ||
1329 | /** | 1329 | /** |
1330 | * Retrieve the identity of the host's peer. | ||
1331 | * | ||
1332 | * @param cfg configuration to use | ||
1333 | * @param dst pointer to where to write the peer identity | ||
1334 | * @return GNUNET_OK on success, GNUNET_SYSERR if the identity | ||
1335 | * could not be retrieved | ||
1336 | */ | ||
1337 | int | ||
1338 | GNUNET_CRYPTO_get_host_identity (const struct GNUNET_CONFIGURATION_Handle *cfg, | ||
1339 | struct GNUNET_PeerIdentity *dst); | ||
1340 | |||
1341 | |||
1342 | /** | ||
1330 | * Derive key material from a public and a private ECC key. | 1343 | * Derive key material from a public and a private ECC key. |
1331 | * | 1344 | * |
1332 | * @param key private key to use for the ECDH (x) | 1345 | * @param key private key to use for the ECDH (x) |