following centuries of denial , cossa is eventually enlisted as antipope john xxiii , and an ending of the controversy is put in 1958 when angelo roncalli is elected pope and chooses the regnal name of john xxiii , in official recognition of balthasar cossas illegitimacy .