diff options
author | David Goulet <dgoulet@torproject.org> | 2017-07-20 11:34:32 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-08-08 20:29:33 -0400 |
commit | 44e3255c4df78828110cec360031a616c6d8d0fa (patch) | |
tree | d4b3c7ddfa78b9e3a82257b1921bd43c3783d7ff /src/or/hs_descriptor.h | |
parent | c9927ce4d5cf46cd12d09e73e80f435b4852f26e (diff) | |
download | tor-44e3255c4df78828110cec360031a616c6d8d0fa.tar.gz tor-44e3255c4df78828110cec360031a616c6d8d0fa.zip |
hs: Implement constructor for hs_desc_intro_point_t
Add a new and free function for hs_desc_intro_point_t so the service can use
them to setup those objects properly.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/hs_descriptor.h')
-rw-r--r-- | src/or/hs_descriptor.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/hs_descriptor.h b/src/or/hs_descriptor.h index fdf0b90b5b..80ddf8978a 100644 --- a/src/or/hs_descriptor.h +++ b/src/or/hs_descriptor.h @@ -215,6 +215,9 @@ int hs_desc_decode_encrypted(const hs_descriptor_t *desc, size_t hs_desc_plaintext_obj_size(const hs_desc_plaintext_data_t *data); +hs_desc_intro_point_t *hs_desc_intro_point_new(void); +void hs_desc_intro_point_free(hs_desc_intro_point_t *ip); + #ifdef HS_DESCRIPTOR_PRIVATE /* Encoding. */ @@ -233,7 +236,6 @@ STATIC int cert_is_valid(tor_cert_t *cert, uint8_t type, STATIC int desc_sig_is_valid(const char *b64_sig, const ed25519_public_key_t *signing_pubkey, const char *encoded_desc, size_t encoded_len); -STATIC void desc_intro_point_free(hs_desc_intro_point_t *ip); STATIC size_t decode_superencrypted(const char *message, size_t message_len, uint8_t **encrypted_out); #endif /* HS_DESCRIPTOR_PRIVATE */ |