fix: remove alpn callback

This commit is contained in:
2026-05-12 18:55:33 -03:00
parent 0202eed2cc
commit fe9989b3c1
-11
View File
@@ -129,17 +129,6 @@ bool TinyMITMProxy::init()
wolfSSL_CTX_set_verify(_clientCtx, WOLFSSL_VERIFY_NONE, nullptr);
wolfSSL_CTX_set_alpn_select_cb(
_clientCtx,
[](WOLFSSL* /*ssl*/, const unsigned char** out, unsigned char* outLen, const unsigned char* /*in*/,
unsigned int /*inLen*/, void* /*arg*/) {
static const unsigned char forcedProtocol[] = {8, 'h', 't', 't', 'p', '/', '1', '.', '1'};
*out = forcedProtocol;
*outLen = sizeof(forcedProtocol);
return 0;
},
nullptr);
bool hasCA = false;
if (_config.autoGenerateCA)
{