diff options
author | jospaeth <spaethj@in.tum.de> | 2020-08-08 21:29:12 +0200 |
---|---|---|
committer | jospaeth <spaethj@in.tum.de> | 2020-08-08 21:29:12 +0200 |
commit | a2280bff1c996cfe70326602c0204f8637c2c20b (patch) | |
tree | 084bfa8c580b1470ffb0b43dfb6c3b895bd21fe8 /src/include/gnunet_escrow_lib.h | |
parent | 7dc7d65cd35ac00c7495d81da4456b73c1928b11 (diff) | |
download | gnunet-a2280bff1c996cfe70326602c0204f8637c2c20b.tar.gz gnunet-a2280bff1c996cfe70326602c0204f8637c2c20b.zip |
store escrow status to config
Diffstat (limited to 'src/include/gnunet_escrow_lib.h')
-rw-r--r-- | src/include/gnunet_escrow_lib.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/include/gnunet_escrow_lib.h b/src/include/gnunet_escrow_lib.h index 3573f4870..07321c9e2 100644 --- a/src/include/gnunet_escrow_lib.h +++ b/src/include/gnunet_escrow_lib.h | |||
@@ -45,6 +45,7 @@ extern "C" { | |||
45 | * Enum for the different key escrow methods | 45 | * Enum for the different key escrow methods |
46 | */ | 46 | */ |
47 | enum GNUNET_ESCROW_Key_Escrow_Method { | 47 | enum GNUNET_ESCROW_Key_Escrow_Method { |
48 | GNUNET_ESCROW_KEY_NONE, // error value | ||
48 | GNUNET_ESCROW_KEY_PLAINTEXT, | 49 | GNUNET_ESCROW_KEY_PLAINTEXT, |
49 | GNUNET_ESCROW_KEY_GNS, | 50 | GNUNET_ESCROW_KEY_GNS, |
50 | GNUNET_ESCROW_KEY_ANASTASIS | 51 | GNUNET_ESCROW_KEY_ANASTASIS |
@@ -89,6 +90,11 @@ struct GNUNET_ESCROW_Status { | |||
89 | * The time of the next recommended escrow. | 90 | * The time of the next recommended escrow. |
90 | */ | 91 | */ |
91 | struct GNUNET_TIME_Absolute next_recommended_escrow_time; | 92 | struct GNUNET_TIME_Absolute next_recommended_escrow_time; |
93 | |||
94 | /** | ||
95 | * The used escrow method. | ||
96 | */ | ||
97 | enum GNUNET_ESCROW_Key_Escrow_Method last_method; | ||
92 | }; | 98 | }; |
93 | 99 | ||
94 | 100 | ||
@@ -146,7 +152,7 @@ struct GNUNET_ESCROW_Handle | |||
146 | /** | 152 | /** |
147 | * Configuration to use. | 153 | * Configuration to use. |
148 | */ | 154 | */ |
149 | const struct GNUNET_CONFIGURATION_Handle *cfg; | 155 | struct GNUNET_CONFIGURATION_Handle *cfg; |
150 | 156 | ||
151 | /** | 157 | /** |
152 | * Head of active operations. | 158 | * Head of active operations. |
@@ -273,7 +279,7 @@ GNUNET_ESCROW_fini ( | |||
273 | struct GNUNET_ESCROW_Operation * | 279 | struct GNUNET_ESCROW_Operation * |
274 | GNUNET_ESCROW_put ( | 280 | GNUNET_ESCROW_put ( |
275 | struct GNUNET_ESCROW_Handle *h, | 281 | struct GNUNET_ESCROW_Handle *h, |
276 | const struct GNUNET_IDENTITY_Ego *ego, | 282 | struct GNUNET_IDENTITY_Ego *ego, |
277 | enum GNUNET_ESCROW_Key_Escrow_Method method, | 283 | enum GNUNET_ESCROW_Key_Escrow_Method method, |
278 | GNUNET_ESCROW_AnchorContinuation cb, | 284 | GNUNET_ESCROW_AnchorContinuation cb, |
279 | void *cb_cls); | 285 | void *cb_cls); |
@@ -330,7 +336,6 @@ GNUNET_ESCROW_verify ( | |||
330 | * | 336 | * |
331 | * @param h the handle for the escrow component | 337 | * @param h the handle for the escrow component |
332 | * @param ego the identity ego of which the escrow status has to be determined | 338 | * @param ego the identity ego of which the escrow status has to be determined |
333 | * @param escrowAnchor the escrow anchor returned by the GNUNET_ESCROW_put method | ||
334 | * @param method the escrow method to use | 339 | * @param method the escrow method to use |
335 | * | 340 | * |
336 | * @return the status of the escrow packed into a GNUNET_ESCROW_Status struct | 341 | * @return the status of the escrow packed into a GNUNET_ESCROW_Status struct |
@@ -338,8 +343,7 @@ GNUNET_ESCROW_verify ( | |||
338 | struct GNUNET_ESCROW_Status * | 343 | struct GNUNET_ESCROW_Status * |
339 | GNUNET_ESCROW_get_status ( | 344 | GNUNET_ESCROW_get_status ( |
340 | struct GNUNET_ESCROW_Handle *h, | 345 | struct GNUNET_ESCROW_Handle *h, |
341 | const struct GNUNET_IDENTITY_Ego *ego, | 346 | struct GNUNET_IDENTITY_Ego *ego, |
342 | struct GNUNET_ESCROW_Anchor *escrowAnchor, | ||
343 | enum GNUNET_ESCROW_Key_Escrow_Method method); | 347 | enum GNUNET_ESCROW_Key_Escrow_Method method); |
344 | 348 | ||
345 | 349 | ||