diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-01-17 00:13:15 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-01-17 00:13:15 +0100 |
| commit | 76ae4374b0d9f388b34bad22c0969e10a40342f8 (patch) | |
| tree | b5b277418cb22cf35007ac34c38a69e32e0e7085 /src | |
| parent | 191838e49221a1d07be0116b1d30d0f6ee58394e (diff) | |
Add certificate validity period to the screen dialog.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/screen_dialog.cc | 4 | ||||
| -rw-r--r-- | src/wx/screen_dialog.h | 2 |
2 files changed, 6 insertions, 0 deletions
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<dcp::Certificate> 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<TrustedDevice, TrustedDeviceDialog>* _trusted_device_list; |
