From: Carl Hetherington Date: Mon, 16 Jan 2023 23:13:15 +0000 (+0100) Subject: Add certificate validity period to the screen dialog. X-Git-Tag: v2.16.41~24 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=76ae4374b0d9f388b34bad22c0969e10a40342f8 Add certificate validity period to the screen dialog. --- 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;