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.h22
1 files changed, 9 insertions, 13 deletions
diff --git a/src/scalarproduct/scalarproduct.h b/src/scalarproduct/scalarproduct.h
index 2a6a5c76c..a3154e587 100644
--- a/src/scalarproduct/scalarproduct.h
+++ b/src/scalarproduct/scalarproduct.h
@@ -11,19 +11,19 @@
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
18 SPDX-License-Identifier: AGPL3.0-or-later 18 SPDX-License-Identifier: AGPL3.0-or-later
19*/ 19 */
20/** 20/**
21 * @file scalarproduct.h 21 * @file scalarproduct.h
22 * @brief Scalar Product API Message Types 22 * @brief Scalar Product API Message Types
23 * @author Christian M. Fuchs 23 * @author Christian M. Fuchs
24 */ 24 */
25#ifndef SCALARPRODUCT_H 25#ifndef SCALARPRODUCT_H
26#define SCALARPRODUCT_H 26#define SCALARPRODUCT_H
27 27
28GNUNET_NETWORK_STRUCT_BEGIN 28GNUNET_NETWORK_STRUCT_BEGIN
29 29
@@ -32,15 +32,14 @@ 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, _("`%s' failed at %s:%d with error: %s\n"), cmd, __FILE__, __LINE__, gcry_strerror(rc)); } while (0)
36 36
37 37
38/** 38/**
39 * Message type passed from client to service 39 * Message type passed from client to service
40 * to initiate a request or responder role 40 * to initiate a request or responder role
41 */ 41 */
42struct AliceComputationMessage 42struct AliceComputationMessage {
43{
44 /** 43 /**
45 * GNUNET message header with type 44 * GNUNET message header with type
46 * #GNUNET_MESSAGE_TYPE_SCALARPRODUCT_CLIENT_TO_ALICE 45 * #GNUNET_MESSAGE_TYPE_SCALARPRODUCT_CLIENT_TO_ALICE
@@ -82,8 +81,7 @@ struct AliceComputationMessage
82 * Message type passed from client to service 81 * Message type passed from client to service
83 * to initiate a request or responder role 82 * to initiate a request or responder role
84 */ 83 */
85struct BobComputationMessage 84struct BobComputationMessage {
86{
87 /** 85 /**
88 * GNUNET message header with type 86 * GNUNET message header with type
89 * #GNUNET_MESSAGE_TYPE_SCALARPRODUCT_CLIENT_TO_BOB 87 * #GNUNET_MESSAGE_TYPE_SCALARPRODUCT_CLIENT_TO_BOB
@@ -119,8 +117,7 @@ struct BobComputationMessage
119/** 117/**
120 * multipart messages following `struct ComputationMessage` 118 * multipart messages following `struct ComputationMessage`
121 */ 119 */
122struct ComputationBobCryptodataMultipartMessage 120struct ComputationBobCryptodataMultipartMessage {
123{
124 /** 121 /**
125 * GNUNET message header 122 * GNUNET message header
126 */ 123 */
@@ -141,8 +138,7 @@ struct ComputationBobCryptodataMultipartMessage
141 * Message type passed from service client 138 * Message type passed from service client
142 * to finalize a session as requester or responder 139 * to finalize a session as requester or responder
143 */ 140 */
144struct ClientResponseMessage 141struct ClientResponseMessage {
145{
146 /** 142 /**
147 * GNUNET message header 143 * GNUNET message header
148 */ 144 */
@@ -171,4 +167,4 @@ struct ClientResponseMessage
171 167
172GNUNET_NETWORK_STRUCT_END 168GNUNET_NETWORK_STRUCT_END
173 169
174#endif /* SCALARPRODUCT_H */ 170#endif /* SCALARPRODUCT_H */