summaryrefslogtreecommitdiff
path: root/src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-08-10 11:46:22 +0000
committerChristian Grothoff <christian@grothoff.org>2016-08-10 11:46:22 +0000
commit6d5959b29aa3ff47605aa91550d90fc28597d0de (patch)
treea1a6b2815d0f8ff1ab145196283d8b31097cb045 /src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c
parent189e703a007d7950842e71399526a3b11ef5a6ac (diff)
downloadgnunet-6d5959b29aa3ff47605aa91550d90fc28597d0de.tar.gz
gnunet-6d5959b29aa3ff47605aa91550d90fc28597d0de.zip
use non-constant ports for CADET with scalarproduct
Diffstat (limited to 'src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c')
-rw-r--r--src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c b/src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c
index 43a25a08d..fe27067e8 100644
--- a/src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c
+++ b/src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c
@@ -850,7 +850,11 @@ client_request_complete_alice (struct AliceServiceSession *s)
850{ 850{
851 struct EccServiceRequestMessage *msg; 851 struct EccServiceRequestMessage *msg;
852 struct GNUNET_MQ_Envelope *e; 852 struct GNUNET_MQ_Envelope *e;
853 struct GNUNET_HashCode set_sid;
853 854
855 GNUNET_CRYPTO_hash (&s->session_id,
856 sizeof (struct GNUNET_HashCode),
857 &set_sid);
854 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 858 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
855 "Creating new channel for session with key %s.\n", 859 "Creating new channel for session with key %s.\n",
856 GNUNET_h2s (&s->session_id)); 860 GNUNET_h2s (&s->session_id));
@@ -858,7 +862,7 @@ client_request_complete_alice (struct AliceServiceSession *s)
858 = GNUNET_CADET_channel_create (my_cadet, 862 = GNUNET_CADET_channel_create (my_cadet,
859 s, 863 s,
860 &s->peer, 864 &s->peer,
861 GC_u2h (GNUNET_APPLICATION_TYPE_SCALARPRODUCT_ECC), 865 &s->session_id,
862 GNUNET_CADET_OPTION_RELIABLE); 866 GNUNET_CADET_OPTION_RELIABLE);
863 if (NULL == s->channel) 867 if (NULL == s->channel)
864 { 868 {
@@ -870,7 +874,7 @@ client_request_complete_alice (struct AliceServiceSession *s)
870 s->intersection_listen 874 s->intersection_listen
871 = GNUNET_SET_listen (cfg, 875 = GNUNET_SET_listen (cfg,
872 GNUNET_SET_OPERATION_INTERSECTION, 876 GNUNET_SET_OPERATION_INTERSECTION,
873 &s->session_id, 877 &set_sid,
874 &cb_intersection_request_alice, 878 &cb_intersection_request_alice,
875 s); 879 s);
876 if (NULL == s->intersection_listen) 880 if (NULL == s->intersection_listen)