Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPieter <9167905+Pieterv24@users.noreply.github.com>2022-01-28 23:05:53 +0300
committersupermerill <merill@free.fr>2022-02-15 06:17:08 +0300
commit261720923de666a92d3e2ecbdf404745984c2472 (patch)
tree4ea1e496d0f49136916deb35112d182948959eaa /src/libslic3r/PrintConfig.cpp
parent32a5ce6acc26ed5a60c39797669f79bc668dc5c1 (diff)
Added Client certificate authentication to physical printer options
Diffstat (limited to 'src/libslic3r/PrintConfig.cpp')
-rw-r--r--src/libslic3r/PrintConfig.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/libslic3r/PrintConfig.cpp b/src/libslic3r/PrintConfig.cpp
index f7771d67e..499d5f4fe 100644
--- a/src/libslic3r/PrintConfig.cpp
+++ b/src/libslic3r/PrintConfig.cpp
@@ -463,6 +463,13 @@ void PrintConfigDef::init_common_params()
def->cli = ConfigOptionDef::nocli;
def->set_default_value(new ConfigOptionString(""));
+ def = this->add("printhost_client_cert", coString);
+ def->label = L("Client Certificate File");
+ def->category = OptionCategory::general;
+ def->tooltip = L("Custom Client certificate file can be specified for 2-way ssl authentication, in p12/pfx format. "
+ "If left blank, no client certificate is used.");
+ def->mode = comAdvanced;
+ def->set_default_value(new ConfigOptionString(""));
// Options used by physical printers
@@ -3504,6 +3511,13 @@ void PrintConfigDef::init_fff_params()
def->mode = comAdvanced;
def->set_default_value(new ConfigOptionString(""));
+ def = this->add("printhost_client_cert", coString);
+ def->label = L("Client Certificate File");
+ def->tooltip = L("Custom Client certificate file can be specified for 2-way ssl authentication, in p12/pfx format. "
+ "If left blank, no client certificate is used.");
+ def->mode = comAdvanced;
+ def->set_default_value(new ConfigOptionString(""));
+
def = this->add("print_custom_variables", coString);
def->label = L("Custom variables");
def->full_label = L("Custom Print variables");
@@ -6983,6 +6997,7 @@ std::unordered_set<std::string> prusa_export_to_remove_keys = {
"print_temperature",
"printhost_apikey",
"printhost_cafile",
+"printhost_client_cert",
"retract_lift_first_layer",
"retract_lift_top",
"seam_angle_cost",