Palladium-catalyzed aromatic C-H halogenation with hydrogen halides by means of electrochemical oxidation.