diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-06-26 17:21:22 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-06-26 17:21:22 +0000 |
commit | 3999807382f98843cdde19211fc94484d0793087 (patch) | |
tree | eab97299e72edbfdd5d6f409db0729d9780d3e5e /src/include/block_regex.h | |
parent | abc1a0ea19b7dc199b83749d31e32622c7469ded (diff) | |
download | gnunet-3999807382f98843cdde19211fc94484d0793087.tar.gz gnunet-3999807382f98843cdde19211fc94484d0793087.zip |
-introducing signing of regex accept states, removing PID from regex API
Diffstat (limited to 'src/include/block_regex.h')
-rw-r--r-- | src/include/block_regex.h | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/src/include/block_regex.h b/src/include/block_regex.h index 73d7b70a5..be9d305ad 100644 --- a/src/include/block_regex.h +++ b/src/include/block_regex.h | |||
@@ -90,18 +90,34 @@ struct RegexBlock | |||
90 | /** | 90 | /** |
91 | * @brief Block to announce a peer accepting a state. | 91 | * @brief Block to announce a peer accepting a state. |
92 | */ | 92 | */ |
93 | struct RegexAccept | 93 | struct RegexAcceptBlock |
94 | { | 94 | { |
95 | |||
96 | /** | ||
97 | * Accept blocks must be signed. Signature | ||
98 | * goes over expiration time and key. | ||
99 | */ | ||
100 | struct GNUNET_CRYPTO_EccSignaturePurpose purpose; | ||
101 | |||
102 | /** | ||
103 | * When does the signature expire? | ||
104 | */ | ||
105 | struct GNUNET_TIME_AbsoluteNBO expiration_time; | ||
106 | |||
95 | /** | 107 | /** |
96 | * The key of the state. | 108 | * The key of the state. |
97 | */ | 109 | */ |
98 | struct GNUNET_HashCode key; | 110 | struct GNUNET_HashCode key; |
99 | 111 | ||
100 | /** | 112 | /** |
101 | * The identity of the peer accepting the state | 113 | * Public key of the peer signing. |
102 | */ | 114 | */ |
103 | struct GNUNET_PeerIdentity id; | 115 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded public_key; |
104 | 116 | ||
117 | /** | ||
118 | * The signature. | ||
119 | */ | ||
120 | struct GNUNET_CRYPTO_EccSignature signature; | ||
105 | }; | 121 | }; |
106 | 122 | ||
107 | 123 | ||