Commit cf6e72b7 authored by David Goulet's avatar David Goulet 🔆
Browse files

hs: Fix ADD_ONION with client authorization



Turns out that passing client authorization keys to ADD_ONION for v3 was
not working because we were not setting the "is_client_auth_enabled"
flag to true once the clients were configured. This lead to the
descriptor being encoded without the clients.

This patch removes that flag and instead adds an inline function that
can be used to check if a given service has client authorization
enabled.

This will be much less error prone of needing to keep in sync the client
list and a flag instead.

Fixes #40378
Signed-off-by: David Goulet's avatarDavid Goulet <dgoulet@torproject.org>
parent f0260c4c
Pipeline #5751 passed with stage
in 20 minutes and 28 seconds