aboutsummaryrefslogtreecommitdiff
path: root/src/or/hs_descriptor.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2017-02-08 14:42:12 +0200
committerGeorge Kadianakis <desnacked@riseup.net>2017-03-13 15:55:20 +0200
commitd0fe199269addb9cab5070691a8b3be186d49986 (patch)
tree4dd49a2e2c4241169df5eff7182dc1b757ab7033 /src/or/hs_descriptor.h
parentb2e37b87a71704aa5274a8c9d47a6740f5953cf4 (diff)
downloadtor-d0fe199269addb9cab5070691a8b3be186d49986.tar.gz
tor-d0fe199269addb9cab5070691a8b3be186d49986.zip
prop224: Implement decoding of superencrypted HS descriptor.
[Consider starting review from desc_decrypt_all() ]
Diffstat (limited to 'src/or/hs_descriptor.h')
-rw-r--r--src/or/hs_descriptor.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/hs_descriptor.h b/src/or/hs_descriptor.h
index 4e0e86681e..711514f82e 100644
--- a/src/or/hs_descriptor.h
+++ b/src/or/hs_descriptor.h
@@ -228,6 +228,8 @@ 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 */
#endif /* TOR_HS_DESCRIPTOR_H */