[tor-commits] [goptlib/master] Factor out the reading and validation from readAuthCookieFile.