diff options
author | George Kadianakis <desnacked@riseup.net> | 2017-09-26 15:07:44 +0300 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2017-09-27 09:24:35 -0400 |
commit | 6051375ccac45f68df48e6ce008f6849d160ce63 (patch) | |
tree | e101d8051f1bb09bbfedb9f89cb095c87cd0dd65 /src/or/hs_client.c | |
parent | a57f495c1a55c0e04ee29d87d4085768c35372e0 (diff) | |
download | tor-6051375ccac45f68df48e6ce008f6849d160ce63.tar.gz tor-6051375ccac45f68df48e6ce008f6849d160ce63.zip |
prop224: Update some function docs with the right retval.
Diffstat (limited to 'src/or/hs_client.c')
-rw-r--r-- | src/or/hs_client.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/or/hs_client.c b/src/or/hs_client.c index 942e332f0c..201e808180 100644 --- a/src/or/hs_client.c +++ b/src/or/hs_client.c @@ -131,9 +131,9 @@ note_connection_attempt_succeeded(const hs_ident_edge_conn_t *hs_conn_ident) } /* Given the pubkey of a hidden service in <b>onion_identity_pk</b>, fetch its - * descriptor by launching a dir connection to <b>hsdir</b>. Return 1 on - * success or -1 on error. */ -static int + * descriptor by launching a dir connection to <b>hsdir</b>. Return a + * hs_client_fetch_status_t status code depending on how it went. */ +static hs_client_fetch_status_t directory_launch_v3_desc_fetch(const ed25519_public_key_t *onion_identity_pk, const routerstatus_t *hsdir) { @@ -224,9 +224,9 @@ pick_hsdir_v3(const ed25519_public_key_t *onion_identity_pk) /** Fetch a v3 descriptor using the given <b>onion_identity_pk</b>. * - * On success, 1 is returned. If no hidden service is left to ask, return 0. - * On error, -1 is returned. */ -static int + * On success, HS_CLIENT_FETCH_LAUNCHED is returned. Otherwise, an error from + * hs_client_fetch_status_t is returned. */ +static hs_client_fetch_status_t fetch_v3_desc(const ed25519_public_key_t *onion_identity_pk) { routerstatus_t *hsdir_rs =NULL; |