diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-02-14 10:12:04 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-02-14 10:12:04 +0100 |
| commit | bfb8965dafcbbe045dfb58ad71333df8898e1df3 (patch) | |
| tree | 63b57c3e109c07e50ee91b718361489d32a71ae2 /src/wx/make_chain_dialog.h | |
| parent | dbfabb1412dbbc21331334031bedc61cbcb20263 (diff) | |
Move some logic from the caller into MakeChainDialog.
Diffstat (limited to 'src/wx/make_chain_dialog.h')
| -rw-r--r-- | src/wx/make_chain_dialog.h | 30 |
1 files changed, 2 insertions, 28 deletions
diff --git a/src/wx/make_chain_dialog.h b/src/wx/make_chain_dialog.h index 5ad62430e..018db99a2 100644 --- a/src/wx/make_chain_dialog.h +++ b/src/wx/make_chain_dialog.h @@ -27,35 +27,9 @@ class MakeChainDialog : public TableDialog { public: - MakeChainDialog ( - wxWindow* parent, - std::string organisation, - std::string organisational_unit_name, - std::string root_common_name, - std::string intermediate_common_name, - std::string leaf_common_name - ); - - std::string organisation () const { - return wx_to_std (_organisation->GetValue ()); - } - - std::string organisational_unit () const { - return wx_to_std (_organisational_unit->GetValue ()); - } - - std::string root_common_name () const { - return "." + wx_to_std (_root_common_name->GetValue ()); - } - - std::string intermediate_common_name () const { - return "." + wx_to_std (_intermediate_common_name->GetValue ()); - } - - std::string leaf_common_name () const { - return "CS." + wx_to_std (_leaf_common_name->GetValue ()); - } + MakeChainDialog (wxWindow* parent, std::shared_ptr<const dcp::CertificateChain> chain); + std::shared_ptr<dcp::CertificateChain> get () const; private: wxTextCtrl* _organisation; |
