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