[tor-commits] [tor/master] Add function to check if a given compression method is supported.