aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_crypto_lib.h
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2013-04-27 11:04:29 +0000
committerFlorian Dold <florian.dold@gmail.com>2013-04-27 11:04:29 +0000
commit00196642a7a8e400a054bd0a9c3b35b24be87a78 (patch)
tree7733d2a156a8468019ec7dc52e5fc36ec0a21c03 /src/include/gnunet_crypto_lib.h
parentd0dd9f2c530ae5df86fb4180b3107892d34031ed (diff)
downloadgnunet-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.h13
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 */
1337int
1338GNUNET_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)