fix: init order
This commit is contained in:
@@ -119,16 +119,16 @@ bool TinyMITMProxy::init()
|
||||
{
|
||||
_running = true;
|
||||
|
||||
if (!_certManager.init()) return false;
|
||||
|
||||
// wolfssl setup
|
||||
wolfSSL_Init();
|
||||
if (wolfSSL_Init() != WOLFSSL_SUCCESS) return false;
|
||||
|
||||
_clientCtx = wolfSSL_CTX_new(wolfTLSv1_3_client_method());
|
||||
if (!_clientCtx) return false;
|
||||
|
||||
wolfSSL_CTX_set_verify(_clientCtx, WOLFSSL_VERIFY_NONE, nullptr);
|
||||
|
||||
// cert setup
|
||||
if (!_certManager.init()) return false;
|
||||
bool hasCA = false;
|
||||
if (_config.autoGenerateCA)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user