X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fmake_signer_chain_dialog.h;h=0ebffeb26f4c44d1124222044b3bddc0f7601830;hb=251cde8683a8c717dcd5356f5acd2624249ea402;hp=fc6391a941e90816aa67d74e61ed66edc79820c6;hpb=391d85619ac19a2a93696ddc35c222eb9bb5d9d6;p=dcpomatic.git diff --git a/src/wx/make_signer_chain_dialog.h b/src/wx/make_signer_chain_dialog.h index fc6391a94..0ebffeb26 100644 --- a/src/wx/make_signer_chain_dialog.h +++ b/src/wx/make_signer_chain_dialog.h @@ -23,7 +23,14 @@ class MakeSignerChainDialog : public TableDialog { public: - MakeSignerChainDialog (wxWindow* parent); + MakeSignerChainDialog ( + 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 ()); @@ -34,17 +41,17 @@ public: } std::string root_common_name () const { - return wx_to_std (_root_common_name->GetValue ()); + return "." + wx_to_std (_root_common_name->GetValue ()); } std::string intermediate_common_name () const { - return wx_to_std (_intermediate_common_name->GetValue ()); + return "." + wx_to_std (_intermediate_common_name->GetValue ()); } std::string leaf_common_name () const { - return wx_to_std (_leaf_common_name->GetValue ()); + return "CS." + wx_to_std (_leaf_common_name->GetValue ()); } - + private: wxTextCtrl* _organisation; @@ -53,4 +60,3 @@ private: wxTextCtrl* _intermediate_common_name; wxTextCtrl* _leaf_common_name; }; -