fix: remove unused struct member

This commit is contained in:
2026-05-13 11:30:14 -03:00
parent 5552d78562
commit 7699630958
2 changed files with 2 additions and 5 deletions
+2 -2
View File
@@ -163,14 +163,14 @@ bool TinyMITMProxy::init()
bool hasCA = false; bool hasCA = false;
if (_config.autoGenerateCA) if (_config.autoGenerateCA)
{ {
if (!_certManager.loadCA(_config.customCaCertDer.c_str(), _config.customCaKeyDer.c_str())) if (!_certManager.loadCA(_config.caCertPath.c_str(), _config.caKeyPath.c_str()))
hasCA = _certManager.generateAndSaveCA(_config.caName.c_str(), _config.caDays, _config.caCertPath, hasCA = _certManager.generateAndSaveCA(_config.caName.c_str(), _config.caDays, _config.caCertPath,
_config.caKeyPath); _config.caKeyPath);
else else
hasCA = true; hasCA = true;
} }
else else
hasCA = _certManager.loadCA(_config.customCaCertDer.c_str(), _config.customCaKeyDer.c_str()); hasCA = _certManager.loadCA(_config.caCertPath.c_str(), _config.caKeyPath.c_str());
if (!hasCA) if (!hasCA)
{ {
-3
View File
@@ -47,9 +47,6 @@ struct TinyMITMConfig
#ifdef _WIN32 #ifdef _WIN32
bool installToSystemStore = true; bool installToSystemStore = true;
#endif #endif
std::string customCaCertDer;
std::string customCaKeyDer;
}; };
class TinyMITMProxy class TinyMITMProxy