How can you identify oxidising and reducing agents?
Oxidising agent itself reduces, while a reducing agent oxidises itself. In the euqations, H in HCl in the first case goes from +1 into 0, so it has reduced (gaiend an electron), so it acts as an oxidising agent. In the second case the hyrdogen in HCl has neither oxidised nor reduced (acid-base reaction I belive).