aboutsummaryrefslogtreecommitdiff
path: root/src/feature/hs/hs_client.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2019-05-28 12:35:04 -0400
committerDavid Goulet <dgoulet@torproject.org>2019-10-17 11:31:03 -0400
commit52bf54ecd4aa48a95f16c2e678ede7d24ef4d322 (patch)
treeb86c1e73d08be40064d10bcdf7a1186210083d92 /src/feature/hs/hs_client.c
parent8e0d9189c5e0331d713ec5d5ef3593e2fb0e11d7 (diff)
downloadtor-52bf54ecd4aa48a95f16c2e678ede7d24ef4d322.tar.gz
tor-52bf54ecd4aa48a95f16c2e678ede7d24ef4d322.zip
hs-v3: Add a series of decoding error code
This commit introduces the hs_desc_decode_status_t enum which aims at having more fine grained error code when decoding a descriptor. This will be useful in later commits when we support keeping a descriptor that can't be decrypted due to missing or bad client authorization creds. No behavior change. Part of #30382. Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/hs/hs_client.c')
-rw-r--r--src/feature/hs/hs_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/feature/hs/hs_client.c b/src/feature/hs/hs_client.c
index 4e2c520b9b..4f6686143f 100644
--- a/src/feature/hs/hs_client.c
+++ b/src/feature/hs/hs_client.c
@@ -1320,7 +1320,7 @@ hs_client_decode_descriptor(const char *desc_str,
ret = hs_desc_decode_descriptor(desc_str, subcredential,
client_auht_sk, desc);
memwipe(subcredential, 0, sizeof(subcredential));
- if (ret < 0) {
+ if (ret != HS_DESC_DECODE_OK) {
goto err;
}