[tor-commits] [sbws/master] Add funcs for validating enums