fix: remove unused struct member
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user