Closed coffeemakr closed 8 years ago
(p.s. i'm happy to take any subsequent changes as force-pushes to this branch, includes rebase/squashes etc)
99.69%
Merging #150 into master will not affect coverage as of
9c41270
@@ master #150 diff @@
======================================
Files 15 15
Stmts 2631 2658 +27
Branches 0 0
Methods 0 0
======================================
+ Hit 2623 2650 +27
Partial 0 0
Missed 8 8
Review entire Coverage Diff as of
9c41270
Powered by Codecov. Updated on successful CI builds.
I haven't looked at password-auth for a while, so it's possible it's changed since the PASSWORD value was tested for. The right place to look is the TorSpec repository: https://gitweb.torproject.org/torspec.git/tree/control-spec.txt and it looks like it is indeed "HASHEDPASSWORD" now.
Overall, this patch is looking great! Thanks :)
Just a couple error-cases to cover with unit-tests and we're good ;)
I have removed the PASSWORD method support because it seems that it was named HASHEDPASSWORD since the beginning of protocol version 1: https://gitweb.torproject.org/torspec.git/diff/proposals/119-controlport-auth.txt?id=3e553a946f8567a44af64f35d2bc13ac68c0fd85
The brackets in "if" are removed. I don't know why I made those.
Some test will follow.
should I add some more tests?
Looks great, thanks :)
Fix for issue #149
Functional changes:
IOError
when reading cookieTorControlProtocol.cookie_data
is also set when using"COOKIE"
authencation."HASHEDPASSWORD"
is allowed