HLA-DRB1*12 is associated with protection against complicated typhoid fever, independent of tumour necrosis factor alpha.