diff options
author | Suphanat Chunhapanya <haxx.pop@gmail.com> | 2018-04-09 23:09:41 +0700 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2018-09-07 13:59:22 -0400 |
commit | 08bbcffc0ef6e69c02cc746568724df662654d2b (patch) | |
tree | d274bb8081b3c4c081327956f08773c9b43b9e94 /src/feature/hs/hs_service.h | |
parent | 15af47ede07a858bfa0871befa6e1fe76cdd372d (diff) | |
download | tor-08bbcffc0ef6e69c02cc746568724df662654d2b.tar.gz tor-08bbcffc0ef6e69c02cc746568724df662654d2b.zip |
hs-v3: Generate all descriptor related keys
We need to generate all the related keys when building the descriptor, so that
we can encrypt the descriptor.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/hs/hs_service.h')
-rw-r--r-- | src/feature/hs/hs_service.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/feature/hs/hs_service.h b/src/feature/hs/hs_service.h index cab9b41bc0..f1b98b8058 100644 --- a/src/feature/hs/hs_service.h +++ b/src/feature/hs/hs_service.h @@ -105,6 +105,13 @@ typedef struct hs_service_descriptor_t { * publishes the descriptor. */ hs_descriptor_t *desc; + /* Client authorization ephemeral keypair. */ + curve25519_keypair_t auth_ephemeral_kp; + + /* Descriptor cookie used to encrypt the descriptor, when the client + * authorization is enabled */ + uint8_t descriptor_cookie[HS_DESC_DESCRIPTOR_COOKIE_LEN]; + /* Descriptor signing keypair. */ ed25519_keypair_t signing_kp; |