Change authentication order to make it more clear, and make it possible to use password authentication even though the Tor instance supports cookie auth (see #7700).
Before:
- If Tor is configured to allow cookie authentication, always try cookie authentication first. If cookie authentication fails, stop trying.
- Only if cookie authentication is not supported try password authentication with value of
-torpassword(if provided)
After:
- If the
-torpasswordoption is provided, force use of password auth. - Give error message if
-torpasswordprovided, but password auth is not available. - Give error message if only password auth available, but
-torpasswordnot given.