[tor-commits] [tor/maint-0.2.2] Make internal error check for unrecognized digest algorithm more robust