diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-21 08:30:39 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-21 08:30:39 +0300 |
commit | 911a56b56c4f9ec5d0c4f1fd15189102bc97fcdb (patch) | |
tree | d8a6cb36c6a7cacad9cd1b8c94755f3f974084e4 /src/ui/root.c | |
parent | 548034e167bd94d21ef9bcc2e6d2d8cbfaeb3d06 (diff) |
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
Diffstat (limited to 'src/ui/root.c')
-rw-r--r-- | src/ui/root.c | 5 |
1 files changed, 1 insertions, 4 deletions
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) { | |||
438 | setFlags_Widget(tool, selected_WidgetFlag, ident != NULL); | 438 | setFlags_Widget(tool, selected_WidgetFlag, ident != NULL); |
439 | /* Update menu. */ | 439 | /* Update menu. */ |
440 | iLabelWidget *idItem = child_Widget(findChild_Widget(button, "menu"), 0); | 440 | iLabelWidget *idItem = child_Widget(findChild_Widget(button, "menu"), 0); |
441 | iString *subjectName = ident ? collect_String(subject_TlsCertificate(ident->cert)) : NULL; | 441 | const iString *subjectName = ident ? name_GmIdentity(ident) : NULL; |
442 | if (subjectName && startsWith_String(subjectName, "CN = ")) { | ||
443 | remove_Block(&subjectName->chars, 0, 5); | ||
444 | } | ||
445 | setTextCStr_LabelWidget( | 442 | setTextCStr_LabelWidget( |
446 | idItem, | 443 | idItem, |
447 | subjectName ? format_CStr(uiTextAction_ColorEscape "%s", cstr_String(subjectName)) | 444 | subjectName ? format_CStr(uiTextAction_ColorEscape "%s", cstr_String(subjectName)) |