this is a tests-only PR aimed at adding functional test coverage for Tor control HASHEDPASSWORD authentication.
currently, the functional test suite does not explicitly explore this authentication path, which means regressions in tor authentication handling could go unnoticed. for instance incorrectly formatted AUTHENTICATE commands, broken fallback behavior, or authentication attempts being made when no password is configured.
The 4 tests herein extend the existing mock tor control server to simulate METHODS=HASHEDPASSWORD responses and cover successful authentication with the correct password, failing with an incorrect password, behavior when -torpassword is not set, and cases where the server does not choose to advertise HASHEDPASSWORD as a way of authenticating.
tested with the test harness:
./build/test/functional/test_runner.py ./build/test/functional/feature_torcontrol.py --loglevel=debug --failfast