From 911a56b56c4f9ec5d0c4f1fd15189102bc97fcdb Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Fri, 21 May 2021 08:30:39 +0300 Subject: Added identity exporting Exporting an identity will display it in a new tab in PEM encoded format, where it can be saved or copied. IssueID #236 --- src/ui/root.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/ui/root.c') diff --git a/src/ui/root.c b/src/ui/root.c index 1698a5d4..9a089992 100644 --- a/src/ui/root.c +++ b/src/ui/root.c @@ -438,10 +438,7 @@ static void updateNavBarIdentity_(iWidget *navBar) { setFlags_Widget(tool, selected_WidgetFlag, ident != NULL); /* Update menu. */ iLabelWidget *idItem = child_Widget(findChild_Widget(button, "menu"), 0); - iString *subjectName = ident ? collect_String(subject_TlsCertificate(ident->cert)) : NULL; - if (subjectName && startsWith_String(subjectName, "CN = ")) { - remove_Block(&subjectName->chars, 0, 5); - } + const iString *subjectName = ident ? name_GmIdentity(ident) : NULL; setTextCStr_LabelWidget( idItem, subjectName ? format_CStr(uiTextAction_ColorEscape "%s", cstr_String(subjectName)) -- cgit v1.2.3