Skip to content
Snippets Groups Projects
Commit a6147311 authored by George Kadianakis's avatar George Kadianakis
Browse files

Documentation: Move the hs_service_descriptor_t elements around.

Move the elements around to concentrate mutable and immutable elements
together. This commit changes no code, check with --color-moved.
parent df78fb24
No related branches found
No related tags found
No related merge requests found
......@@ -117,10 +117,6 @@ typedef struct hs_service_intropoints_t {
* update_service_descriptor_intro_points().
*/
typedef struct hs_service_descriptor_t {
/* Mutable: Decoded descriptor. This object is used for encoding when the
* service publishes the descriptor. */
hs_descriptor_t *desc;
/* Immutable: Client authorization ephemeral keypair. */
curve25519_keypair_t auth_ephemeral_kp;
......@@ -134,6 +130,17 @@ typedef struct hs_service_descriptor_t {
/* Immutable: Blinded keypair derived from the master identity public key. */
ed25519_keypair_t blinded_kp;
/* Immutable: The time period number this descriptor has been created for. */
uint64_t time_period_num;
/** Immutable: The OPE cipher for encrypting revision counters for this
* descriptor. Tied to the descriptor blinded key. */
struct crypto_ope_t *ope_cipher;
/* Mutable: Decoded descriptor. This object is used for encoding when the
* service publishes the descriptor. */
hs_descriptor_t *desc;
/* Mutable: When is the next time when we should upload the descriptor. */
time_t next_upload_time;
......@@ -142,9 +149,6 @@ typedef struct hs_service_descriptor_t {
* if the node is legacy). */
hs_service_intropoints_t intro_points;
/* Immutable: The time period number this descriptor has been created for. */
uint64_t time_period_num;
/* Mutable: True iff we have missing intro points for this descriptor because
* we couldn't pick any nodes. */
unsigned int missing_intro_points : 1;
......@@ -154,10 +158,6 @@ typedef struct hs_service_descriptor_t {
* is different from this list, this means we received new dirinfo and we
* need to reupload our descriptor. */
smartlist_t *previous_hsdirs;
/** Immutable: The OPE cipher for encrypting revision counters for this
* descriptor. Tied to the descriptor blinded key. */
struct crypto_ope_t *ope_cipher;
} hs_service_descriptor_t;
/* Service key material. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment