in 1932 he joined the then outlawed marxist party and held high political and army functions from 1942 , becoming home secretary in 1948 , when the communist party took control in hungary .
Communist control in Hungary ended in 1948.