diff options
author | George Kadianakis <desnacked@riseup.net> | 2018-10-23 16:43:08 +0300 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2018-10-23 16:43:54 +0300 |
commit | a614731144be9478617411bb3268a4fccec506d9 (patch) | |
tree | 3e930cf16d8654437048dcf76a682ffacc1ba646 /src/feature | |
parent | df78fb24511e890a1a2bf00127db604919bbdc0e (diff) | |
download | tor-a614731144be9478617411bb3268a4fccec506d9.tar.gz tor-a614731144be9478617411bb3268a4fccec506d9.zip |
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.
Diffstat (limited to 'src/feature')
-rw-r--r-- | src/feature/hs/hs_service.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/feature/hs/hs_service.h b/src/feature/hs/hs_service.h index 9804a45718..3f0adecbfa 100644 --- a/src/feature/hs/hs_service.h +++ b/src/feature/hs/hs_service.h @@ -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. */ |