gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r35624 - gnunet/src/cadet


From: gnunet
Subject: [GNUnet-SVN] r35624 - gnunet/src/cadet
Date: Mon, 27 Apr 2015 21:15:18 +0200

Author: bartpolot
Date: 2015-04-27 21:15:18 +0200 (Mon, 27 Apr 2015)
New Revision: 35624

Modified:
   gnunet/src/cadet/gnunet-service-cadet_peer.c
   gnunet/src/cadet/gnunet-service-cadet_peer.h
Log:
- add getter for peer's permanent ECDH key

Modified: gnunet/src/cadet/gnunet-service-cadet_peer.c
===================================================================
--- gnunet/src/cadet/gnunet-service-cadet_peer.c        2015-04-27 19:15:17 UTC 
(rev 35623)
+++ gnunet/src/cadet/gnunet-service-cadet_peer.c        2015-04-27 19:15:18 UTC 
(rev 35624)
@@ -2419,6 +2419,21 @@
 
 
 /**
+ * Get the Identity ECDH key of the peer.
+ *
+ * @param peer Peer whose key to get.
+ *
+ * @return Peer's permanent ECDH key (might be all 0: unknown).
+ *
+ */
+struct GNUNET_CRYPTO_EcdhePublicKey *
+GCP_get_ecdh_key (struct CadetPeer *peer)
+{
+  return &peer->ax_key;
+}
+
+
+/**
  * Notify a peer that a link between two other peers is broken. If any path
  * used that link, eliminate it.
  *

Modified: gnunet/src/cadet/gnunet-service-cadet_peer.h
===================================================================
--- gnunet/src/cadet/gnunet-service-cadet_peer.h        2015-04-27 19:15:17 UTC 
(rev 35623)
+++ gnunet/src/cadet/gnunet-service-cadet_peer.h        2015-04-27 19:15:18 UTC 
(rev 35624)
@@ -409,6 +409,16 @@
                const struct GNUNET_CRYPTO_EddsaSignature *sig);
 
 /**
+ * Get the Identity ECDH key of the peer.
+ *
+ * @param peer Peer whose key to get.
+ *
+ * @return Peer's permanent ECDH key (might be all 0: unknown).
+ */
+struct GNUNET_CRYPTO_EddsaPublicKey *
+GCP_get_key (struct CadetPeer *peer);
+
+/**
  * Notify a peer that a link between two other peers is broken. If any path
  * used that link, eliminate it.
  *




reply via email to

[Prev in Thread] Current Thread [Next in Thread]