- //!!TODO: When to show Subject, and when (if ever) show Subject-Altname here?
- Label subject_label = new Label(_("Subject: ") + id.trust_anchor.subject);
- subject_label.set_alignment(0, 0.5f);
- ta_table.attach(subject_label, 0, 1, row, row + 1, fill_and_expand, fill_and_expand, 40, 5);
- row++;
+ if (id.trust_anchor.subject != "") {
+ Label subject_label = new Label(_("Subject: ") + id.trust_anchor.subject);
+ subject_label.set_alignment(0, 0.5f);
+ ta_table.attach(subject_label, 0, 1, row, row + 1, fill_and_expand, fill_and_expand, 40, 5);
+ row++;
+ }
+
+ if (id.trust_anchor.subject_alt != "") {
+ Label subject_alt_label = new Label(_("Subject-Alt: ") + id.trust_anchor.subject_alt);
+ subject_alt_label.set_alignment(0, 0.5f);
+ ta_table.attach(subject_alt_label, 0, 1, row, row + 1, fill_and_expand, fill_and_expand, 40, 5);
+ row++;
+ }