[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r33385 - gnunet/src/scalarproduct
From: |
gnunet |
Subject: |
[GNUnet-SVN] r33385 - gnunet/src/scalarproduct |
Date: |
Mon, 26 May 2014 10:43:58 +0200 |
Author: cfuchs
Date: 2014-05-26 10:43:57 +0200 (Mon, 26 May 2014)
New Revision: 33385
Modified:
gnunet/src/scalarproduct/gnunet-service-scalarproduct.c
Log:
- SP now uses the correct msg type for session initialization
- fixed bug when handling of failed set operations
Modified: gnunet/src/scalarproduct/gnunet-service-scalarproduct.c
===================================================================
--- gnunet/src/scalarproduct/gnunet-service-scalarproduct.c 2014-05-26
08:17:01 UTC (rev 33384)
+++ gnunet/src/scalarproduct/gnunet-service-scalarproduct.c 2014-05-26
08:43:57 UTC (rev 33385)
@@ -594,6 +594,10 @@
s->client_transmit_handle = NULL;
free_session_variables (s);
break;
+
+ case GNUNET_MESSAGE_TYPE_SCALARPRODUCT_SESSION_INITIALIZATION:
+ s->service_transmit_handle = NULL;
+ break;
case GNUNET_MESSAGE_TYPE_SCALARPRODUCT_ALICE_CRYPTODATA:
case GNUNET_MESSAGE_TYPE_SCALARPRODUCT_ALICE_CRYPTODATA_MULTIPART:
@@ -1268,6 +1272,7 @@
compute_service_response (s);
return;
}
+ break;
default:
if (NULL != s->intersection_listen)
{
@@ -1452,7 +1457,7 @@
GNUNET_i2s (&s->peer));
msg = GNUNET_new (struct ServiceRequestMessage);
- msg->header.type = htons
(GNUNET_MESSAGE_TYPE_SCALARPRODUCT_ALICE_CRYPTODATA);
+ msg->header.type = htons
(GNUNET_MESSAGE_TYPE_SCALARPRODUCT_SESSION_INITIALIZATION);
memcpy (&msg->session_id, &s->session_id, sizeof (struct GNUNET_HashCode));
msg->header.size = htons (sizeof (struct ServiceRequestMessage));
@@ -2611,7 +2616,7 @@
{NULL, NULL, 0, 0}
};
static const struct GNUNET_CADET_MessageHandler cadet_handlers[] = {
- { &handle_alices_computation_request,
GNUNET_MESSAGE_TYPE_SCALARPRODUCT_ALICE_CRYPTODATA, 0},
+ { &handle_alices_computation_request,
GNUNET_MESSAGE_TYPE_SCALARPRODUCT_SESSION_INITIALIZATION, 0},
{ &handle_alices_cyrptodata_message,
GNUNET_MESSAGE_TYPE_SCALARPRODUCT_ALICE_CRYPTODATA, 0},
{ &handle_alices_cyrptodata_message_multipart,
GNUNET_MESSAGE_TYPE_SCALARPRODUCT_ALICE_CRYPTODATA_MULTIPART, 0},
{ &handle_bobs_cryptodata_message,
GNUNET_MESSAGE_TYPE_SCALARPRODUCT_BOB_CRYPTODATA, 0},
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r33385 - gnunet/src/scalarproduct,
gnunet <=