]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Update `find_service` documentation.
authorGabriela Moldovan <gabi@torproject.org>
Fri, 10 Feb 2023 15:27:43 +0000 (15:27 +0000)
committerGabriela Moldovan <gabi@torproject.org>
Fri, 10 Feb 2023 15:27:43 +0000 (15:27 +0000)
This updates the docs to stop suggesting `pk` can be NULL, as that doesn't seem
to be the case anymore (`tor_assert(pk)`).

Signed-off-by: Gabriela Moldovan <gabi@torproject.org>
src/feature/hs/hs_service.c

index 4e971233afae2057383247d1697be593994c4155..479ac4670f23a51e3dca7a69975575413c04d406 100644 (file)
@@ -170,9 +170,7 @@ is_client_auth_enabled(const hs_service_t *service)
 }
 
 /** Query the given service map with a public key and return a service object
- * if found else NULL. It is also possible to set a directory path in the
- * search query. If pk is NULL, then it will be set to zero indicating the
- * hash table to compare the directory path instead. */
+ * if found else NULL. */
 STATIC hs_service_t *
 find_service(hs_service_ht *map, const ed25519_public_key_t *pk)
 {