diff options
Diffstat (limited to 'src/zklaim/zklaim_api.h')
-rw-r--r-- | src/zklaim/zklaim_api.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/zklaim/zklaim_api.h b/src/zklaim/zklaim_api.h index 97c21b498..24197b06c 100644 --- a/src/zklaim/zklaim_api.h +++ b/src/zklaim/zklaim_api.h | |||
@@ -31,6 +31,28 @@ | |||
31 | 31 | ||
32 | GNUNET_NETWORK_STRUCT_BEGIN | 32 | GNUNET_NETWORK_STRUCT_BEGIN |
33 | 33 | ||
34 | /** | ||
35 | * Answer from service to client about last operation; | ||
36 | * GET_DEFAULT maybe answered with this message on failure; | ||
37 | * CREATE and RENAME will always be answered with this message. | ||
38 | */ | ||
39 | struct ContextMessage | ||
40 | { | ||
41 | /** | ||
42 | * Type: #GNUNET_MESSAGE_TYPE_ZKLAIM_RESULT_CTX | ||
43 | */ | ||
44 | struct GNUNET_MessageHeader header; | ||
45 | |||
46 | /** | ||
47 | * Length if the serialized context. | ||
48 | */ | ||
49 | uint32_t ctx_len GNUNET_PACKED; | ||
50 | |||
51 | /* followed by 0-terminated error message (on error) */ | ||
52 | |||
53 | }; | ||
54 | |||
55 | |||
34 | 56 | ||
35 | /** | 57 | /** |
36 | * Answer from service to client about last operation; | 58 | * Answer from service to client about last operation; |
@@ -54,6 +76,36 @@ struct ResultCodeMessage | |||
54 | 76 | ||
55 | }; | 77 | }; |
56 | 78 | ||
79 | /** | ||
80 | * Client requests issue of a credential. Service | ||
81 | * will respond with a context. | ||
82 | */ | ||
83 | struct LookupMessage | ||
84 | { | ||
85 | /** | ||
86 | * Type: #GNUNET_MESSAGE_TYPE_ZKLAIM_LOOKUP_CTX | ||
87 | */ | ||
88 | struct GNUNET_MessageHeader header; | ||
89 | |||
90 | /** | ||
91 | * Number of bytes in name string including 0-termination, in NBO. | ||
92 | */ | ||
93 | uint16_t name_len GNUNET_PACKED; | ||
94 | |||
95 | /** | ||
96 | * Always zero. | ||
97 | */ | ||
98 | uint16_t reserved GNUNET_PACKED; | ||
99 | |||
100 | /** | ||
101 | * The private key | ||
102 | */ | ||
103 | struct GNUNET_CRYPTO_EcdsaPrivateKey private_key; | ||
104 | |||
105 | /* followed by 0-terminated identity name */ | ||
106 | |||
107 | }; | ||
108 | |||
57 | 109 | ||
58 | /** | 110 | /** |
59 | * Client requests creation of an identity. Service | 111 | * Client requests creation of an identity. Service |