summaryrefslogtreecommitdiff
path: root/src/scalarproduct/scalarproduct.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/scalarproduct/scalarproduct.h')
-rw-r--r--src/scalarproduct/scalarproduct.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/scalarproduct/scalarproduct.h b/src/scalarproduct/scalarproduct.h
index a3154e587..f2311cda0 100644
--- a/src/scalarproduct/scalarproduct.h
+++ b/src/scalarproduct/scalarproduct.h
@@ -32,14 +32,18 @@ GNUNET_NETWORK_STRUCT_BEGIN
32 * a failure of the command 'cmd' with the message given 32 * a failure of the command 'cmd' with the message given
33 * by gcry_strerror(rc). 33 * by gcry_strerror(rc).
34 */ 34 */
35#define LOG_GCRY(level, cmd, rc) do { LOG(level, _("`%s' failed at %s:%d with error: %s\n"), cmd, __FILE__, __LINE__, gcry_strerror(rc)); } while (0) 35#define LOG_GCRY(level, cmd, rc) do { LOG (level, _ ( \
36 "`%s' failed at %s:%d with error: %s\n"), \
37 cmd, __FILE__, __LINE__, \
38 gcry_strerror (rc)); } while (0)
36 39
37 40
38/** 41/**
39 * Message type passed from client to service 42 * Message type passed from client to service
40 * to initiate a request or responder role 43 * to initiate a request or responder role
41 */ 44 */
42struct AliceComputationMessage { 45struct AliceComputationMessage
46{
43 /** 47 /**
44 * GNUNET message header with type 48 * GNUNET message header with type
45 * #GNUNET_MESSAGE_TYPE_SCALARPRODUCT_CLIENT_TO_ALICE 49 * #GNUNET_MESSAGE_TYPE_SCALARPRODUCT_CLIENT_TO_ALICE
@@ -81,7 +85,8 @@ struct AliceComputationMessage {
81 * Message type passed from client to service 85 * Message type passed from client to service
82 * to initiate a request or responder role 86 * to initiate a request or responder role
83 */ 87 */
84struct BobComputationMessage { 88struct BobComputationMessage
89{
85 /** 90 /**
86 * GNUNET message header with type 91 * GNUNET message header with type
87 * #GNUNET_MESSAGE_TYPE_SCALARPRODUCT_CLIENT_TO_BOB 92 * #GNUNET_MESSAGE_TYPE_SCALARPRODUCT_CLIENT_TO_BOB
@@ -117,7 +122,8 @@ struct BobComputationMessage {
117/** 122/**
118 * multipart messages following `struct ComputationMessage` 123 * multipart messages following `struct ComputationMessage`
119 */ 124 */
120struct ComputationBobCryptodataMultipartMessage { 125struct ComputationBobCryptodataMultipartMessage
126{
121 /** 127 /**
122 * GNUNET message header 128 * GNUNET message header
123 */ 129 */
@@ -138,7 +144,8 @@ struct ComputationBobCryptodataMultipartMessage {
138 * Message type passed from service client 144 * Message type passed from service client
139 * to finalize a session as requester or responder 145 * to finalize a session as requester or responder
140 */ 146 */
141struct ClientResponseMessage { 147struct ClientResponseMessage
148{
142 /** 149 /**
143 * GNUNET message header 150 * GNUNET message header
144 */ 151 */