Two classes of thiol groups modulate voltage sensing by the mitochondrial transition pore.