What ranking did XXX hold in the military?
Hayreddin Barbarossa
Hayreddin Barbarossa, or Barbarossa Hayreddin Pasha (Turkish: Barbaros Hayreddin (Hayrettin) Paşa or Hızır Hayreddin (Hayrettin) Paşa; also Hızır Reis before being promoted to the rank of Pasha and becoming the Kapudan Pasha), born Khizr or Khidr (Turkish: Hızır; c. 1478 -- 4 July 1546), was an Ottoman admiral of the fleet who was born in the island of Midilli (Lesbos) and died in Constantinople (Istanbul), the Ottoman capital.
admiral