aboutsummaryrefslogtreecommitdiff
path: root/src/or/hs_descriptor.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2016-12-23 14:48:05 +0200
committerGeorge Kadianakis <desnacked@riseup.net>2017-01-09 15:02:56 +0200
commite1d7661412325bb8c81a3a7f4d5cc25efdee5a78 (patch)
tree333dc5ef254638d6ba72a42cf18f9268fd5ad626 /src/or/hs_descriptor.h
parent7456677a50d1c4c9f0f2e6b63259905f694d329a (diff)
downloadtor-e1d7661412325bb8c81a3a7f4d5cc25efdee5a78.tar.gz
tor-e1d7661412325bb8c81a3a7f4d5cc25efdee5a78.zip
Max HS descriptor size is now 50kb and also consensus param.
Diffstat (limited to 'src/or/hs_descriptor.h')
-rw-r--r--src/or/hs_descriptor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/hs_descriptor.h b/src/or/hs_descriptor.h
index 083d353860..e0abcea2c4 100644
--- a/src/or/hs_descriptor.h
+++ b/src/or/hs_descriptor.h
@@ -54,7 +54,7 @@
HS_DESC_ENCRYPTED_SALT_LEN + \
HS_DESC_PLAINTEXT_PADDING_MULTIPLE + DIGEST256_LEN
/* Maximum length in bytes of a full hidden service descriptor. */
-#define HS_DESC_MAX_LEN 32768 // XXX justify
+#define HS_DESC_MAX_LEN 50000 /* 50kb max size */
/* The minimum amount of fields a descriptor should contain. The parsing of
* the fields are version specific so the only required field, as a generic
* view of a descriptor, is 1 that is the version field. */