glitch in the license text detected by hyazinthe, thank you!
[oweals/gnunet.git] / src / include / block_regex.h
1 /*
2      This file is part of GNUnet.
3      Copyright (C) 2012,2013 GNUnet e.V.
4
5      GNUnet is free software: you can redistribute it and/or modify it
6      under the terms of the GNU Affero General Public License as published
7      by the Free Software Foundation, either version 3 of the License,
8      or (at your option) any later version.
9
10      GNUnet is distributed in the hope that it will be useful, but
11      WITHOUT ANY WARRANTY; without even the implied warranty of
12      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13      Affero General Public License for more details.
14 */
15
16 /**
17  * @file
18  * regex block formats
19  *
20  * @author Bartlomiej Polot
21  */
22 #ifndef BLOCK_REGEX_H
23 #define BLOCK_REGEX_H
24
25 #ifdef __cplusplus
26 extern "C"
27 {
28 #if 0
29   /* keep Emacsens' auto-indent happy */
30 }
31 #endif
32 #endif
33
34 #include "gnunet_util_lib.h"
35 #include <stdint.h>
36
37
38 GNUNET_NETWORK_STRUCT_BEGIN
39
40
41 /**
42  * @brief Block to announce a peer accepting a state.
43  */
44 struct RegexAcceptBlock
45 {
46
47   /**
48    * Accept blocks must be signed.  Signature
49    * goes over expiration time and key.
50    */
51   struct GNUNET_CRYPTO_EccSignaturePurpose purpose;
52
53   /**
54    * When does the signature expire?
55    */
56   struct GNUNET_TIME_AbsoluteNBO expiration_time;
57
58   /**
59    * The key of the state.
60    */
61   struct GNUNET_HashCode key;
62
63   /**
64    * Public key of the peer signing.
65    */
66   struct GNUNET_PeerIdentity peer;
67
68   /**
69    * The signature.
70    */
71   struct GNUNET_CRYPTO_EddsaSignature signature;
72 };
73
74
75 GNUNET_NETWORK_STRUCT_END
76
77
78 #if 0                           /* keep Emacsens' auto-indent happy */
79 {
80 #endif
81 #ifdef __cplusplus
82 }
83 #endif
84
85 #endif