The claim is hidden in a long article about some other ... uhm delicate ... myths surrounding Hitler here:
according to a former comrade of Hitler's from the trenches, Hans Mend, his comrades used to put boot blacking on the future Fuhrer's penis when he was asleep in the trenches, which Dr Machtan describes as 'evidently a common occurrence' in the German army in the Great War.