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 ());
}
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;
wxTextCtrl* _intermediate_common_name;
wxTextCtrl* _leaf_common_name;
};
-