fix: remove unused struct member
This commit is contained in:
@@ -163,14 +163,14 @@ bool TinyMITMProxy::init()
|
||||
bool hasCA = false;
|
||||
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,
|
||||
_config.caKeyPath);
|
||||
else
|
||||
hasCA = true;
|
||||
}
|
||||
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)
|
||||
{
|
||||
|
||||
@@ -47,9 +47,6 @@ struct TinyMITMConfig
|
||||
#ifdef _WIN32
|
||||
bool installToSystemStore = true;
|
||||
#endif
|
||||
|
||||
std::string customCaCertDer;
|
||||
std::string customCaKeyDer;
|
||||
};
|
||||
|
||||
class TinyMITMProxy
|
||||
|
||||
Reference in New Issue
Block a user