From 76ae4374b0d9f388b34bad22c0969e10a40342f8 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 17 Jan 2023 00:13:15 +0100 Subject: [PATCH] Add certificate validity period to the screen dialog. --- src/wx/screen_dialog.cc | 4 ++++ src/wx/screen_dialog.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/wx/screen_dialog.cc b/src/wx/screen_dialog.cc index 37edb9ae9..0ad8d9cf2 100644 --- a/src/wx/screen_dialog.cc +++ b/src/wx/screen_dialog.cc @@ -179,6 +179,8 @@ ScreenDialog::ScreenDialog ( add_certificate_detail(_("Subject organization name"), &_subject_organization_name); add_certificate_detail(_("Issuer common name"), &_issuer_common_name); add_certificate_detail(_("Issuer organization name"), &_issuer_organization_name); + add_certificate_detail(_("Not valid before"), &_not_valid_before); + add_certificate_detail(_("Not valid after"), &_not_valid_after); set_recipient (recipient); @@ -325,6 +327,8 @@ ScreenDialog::set_recipient (optional r) _subject_organization_name->SetLabel(std_to_wx(_recipient->subject_organization_name())); _issuer_common_name->SetLabel(std_to_wx(_recipient->issuer_common_name())); _issuer_organization_name->SetLabel(std_to_wx(_recipient->issuer_organization_name())); + _not_valid_before->SetLabel(std_to_wx(_recipient->not_before().as_string())); + _not_valid_after->SetLabel(std_to_wx(_recipient->not_after().as_string())); _sizer->Layout (); } } diff --git a/src/wx/screen_dialog.h b/src/wx/screen_dialog.h index 0069b9fa3..3435bf711 100644 --- a/src/wx/screen_dialog.h +++ b/src/wx/screen_dialog.h @@ -75,6 +75,8 @@ private: wxStaticText* _subject_organization_name; wxStaticText* _issuer_common_name; wxStaticText* _issuer_organization_name; + wxStaticText* _not_valid_before; + wxStaticText* _not_valid_after; wxButton* _get_recipient_from_file; wxButton* _download_recipient; EditableList* _trusted_device_list; -- 2.30.2