diff options
Diffstat (limited to 'src/identity/identity.h')
-rw-r--r-- | src/identity/identity.h | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/src/identity/identity.h b/src/identity/identity.h index 181f5c353..13ac91e46 100644 --- a/src/identity/identity.h +++ b/src/identity/identity.h | |||
@@ -74,11 +74,14 @@ struct GNUNET_IDENTITY_UpdateMessage | |||
74 | uint16_t name_len GNUNET_PACKED; | 74 | uint16_t name_len GNUNET_PACKED; |
75 | 75 | ||
76 | /** | 76 | /** |
77 | * Number of bytes of private key data that follow, in NBO. | 77 | * Usually GNUNET_NO, GNUNET_YES to signal end of list. |
78 | */ | 78 | */ |
79 | uint16_t pk_len GNUNET_PACKED; | 79 | uint16_t end_of_list GNUNET_PACKED; |
80 | 80 | ||
81 | /* followed by private key */ | 81 | /** |
82 | * The private key | ||
83 | */ | ||
84 | struct GNUNET_CRYPTO_EccPrivateKey private_key; | ||
82 | 85 | ||
83 | /* followed by 0-terminated identity name */ | 86 | /* followed by 0-terminated identity name */ |
84 | 87 | ||
@@ -130,11 +133,14 @@ struct GNUNET_IDENTITY_SetDefaultMessage | |||
130 | uint16_t name_len GNUNET_PACKED; | 133 | uint16_t name_len GNUNET_PACKED; |
131 | 134 | ||
132 | /** | 135 | /** |
133 | * Number of bytes of private key data that follow, in NBO. | 136 | * Always zero. |
134 | */ | 137 | */ |
135 | uint16_t pk_len GNUNET_PACKED; | 138 | uint16_t reserved GNUNET_PACKED; |
136 | 139 | ||
137 | /* followed by private key */ | 140 | /** |
141 | * The private key | ||
142 | */ | ||
143 | struct GNUNET_CRYPTO_EccPrivateKey private_key; | ||
138 | 144 | ||
139 | /* followed by 0-terminated service name */ | 145 | /* followed by 0-terminated service name */ |
140 | 146 | ||
@@ -158,11 +164,14 @@ struct GNUNET_IDENTITY_CreateRequestMessage | |||
158 | uint16_t name_len GNUNET_PACKED; | 164 | uint16_t name_len GNUNET_PACKED; |
159 | 165 | ||
160 | /** | 166 | /** |
161 | * Number of bytes of private key data that follow, in NBO. | 167 | * Always zero. |
162 | */ | 168 | */ |
163 | uint16_t pk_len GNUNET_PACKED; | 169 | uint16_t reserved GNUNET_PACKED; |
164 | 170 | ||
165 | /* followed by private key */ | 171 | /** |
172 | * The private key | ||
173 | */ | ||
174 | struct GNUNET_CRYPTO_EccPrivateKey private_key; | ||
166 | 175 | ||
167 | /* followed by 0-terminated identity name */ | 176 | /* followed by 0-terminated identity name */ |
168 | 177 | ||