diff options
author | jospaeth <spaethj@in.tum.de> | 2020-08-10 18:45:30 +0200 |
---|---|---|
committer | jospaeth <spaethj@in.tum.de> | 2020-08-10 18:45:30 +0200 |
commit | f2fb911d529db3787b15e39b8a41e081ea626e41 (patch) | |
tree | 606d866cc25a4b8b4bb6deead07bc6282df16b94 /src/include/gnunet_escrow_lib.h | |
parent | b2ebdaca4d0d3a4f1fac2f2f83cdedf4123a43b8 (diff) | |
download | gnunet-f2fb911d529db3787b15e39b8a41e081ea626e41.tar.gz gnunet-f2fb911d529db3787b15e39b8a41e081ea626e41.zip |
continue start_gns_escrow, add user secret string
Diffstat (limited to 'src/include/gnunet_escrow_lib.h')
-rw-r--r-- | src/include/gnunet_escrow_lib.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/include/gnunet_escrow_lib.h b/src/include/gnunet_escrow_lib.h index 07321c9e2..dcd5a15be 100644 --- a/src/include/gnunet_escrow_lib.h +++ b/src/include/gnunet_escrow_lib.h | |||
@@ -44,7 +44,8 @@ extern "C" { | |||
44 | /** | 44 | /** |
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 | { | ||
48 | GNUNET_ESCROW_KEY_NONE, // error value | 49 | GNUNET_ESCROW_KEY_NONE, // error value |
49 | GNUNET_ESCROW_KEY_PLAINTEXT, | 50 | GNUNET_ESCROW_KEY_PLAINTEXT, |
50 | GNUNET_ESCROW_KEY_GNS, | 51 | GNUNET_ESCROW_KEY_GNS, |
@@ -55,7 +56,8 @@ enum GNUNET_ESCROW_Key_Escrow_Method { | |||
55 | /** | 56 | /** |
56 | * Enum for the different verification results | 57 | * Enum for the different verification results |
57 | */ | 58 | */ |
58 | enum GNUNET_ESCROW_Verification_Result { | 59 | enum GNUNET_ESCROW_Verification_Result |
60 | { | ||
59 | GNUNET_ESCROW_VALID, | 61 | GNUNET_ESCROW_VALID, |
60 | GNUNET_ESCROW_INVALID | 62 | GNUNET_ESCROW_INVALID |
61 | }; | 63 | }; |
@@ -64,7 +66,8 @@ enum GNUNET_ESCROW_Verification_Result { | |||
64 | /** | 66 | /** |
65 | * Struct for the escrow anchor | 67 | * Struct for the escrow anchor |
66 | */ | 68 | */ |
67 | struct GNUNET_ESCROW_Anchor { | 69 | struct GNUNET_ESCROW_Anchor |
70 | { | ||
68 | /** | 71 | /** |
69 | * The escrow method. | 72 | * The escrow method. |
70 | */ | 73 | */ |
@@ -80,7 +83,8 @@ struct GNUNET_ESCROW_Anchor { | |||
80 | /** | 83 | /** |
81 | * Struct for the escrow status | 84 | * Struct for the escrow status |
82 | */ | 85 | */ |
83 | struct GNUNET_ESCROW_Status { | 86 | struct GNUNET_ESCROW_Status |
87 | { | ||
84 | /** | 88 | /** |
85 | * The time of the last successful escrow. | 89 | * The time of the last successful escrow. |
86 | */ | 90 | */ |
@@ -270,6 +274,7 @@ GNUNET_ESCROW_fini ( | |||
270 | * | 274 | * |
271 | * @param h the handle for the escrow component | 275 | * @param h the handle for the escrow component |
272 | * @param ego the identity ego to put in escrow | 276 | * @param ego the identity ego to put in escrow |
277 | * @param userSecret the user secret (e.g. for derivation of escrow identities) | ||
273 | * @param method the escrow method to use | 278 | * @param method the escrow method to use |
274 | * @param cb function to call with the escrow anchor on completion | 279 | * @param cb function to call with the escrow anchor on completion |
275 | * @param cb_cls closure for @a cb | 280 | * @param cb_cls closure for @a cb |
@@ -280,6 +285,7 @@ struct GNUNET_ESCROW_Operation * | |||
280 | GNUNET_ESCROW_put ( | 285 | GNUNET_ESCROW_put ( |
281 | struct GNUNET_ESCROW_Handle *h, | 286 | struct GNUNET_ESCROW_Handle *h, |
282 | struct GNUNET_IDENTITY_Ego *ego, | 287 | struct GNUNET_IDENTITY_Ego *ego, |
288 | char *userSecret, | ||
283 | enum GNUNET_ESCROW_Key_Escrow_Method method, | 289 | enum GNUNET_ESCROW_Key_Escrow_Method method, |
284 | GNUNET_ESCROW_AnchorContinuation cb, | 290 | GNUNET_ESCROW_AnchorContinuation cb, |
285 | void *cb_cls); | 291 | void *cb_cls); |