Blocking SSL requests.
I have modified adapter_minimal.cc from ecap_adapter_
This example does not work with HTTPS requests but does work fine with HTTP requests. I am not sure
what I am doing wrong.
The response is not encrypted in directed proxy mode (but works in transparent proxy mode).
Here is my modification to adapter_minimal.cc:
void Adapter:
Must(hostx);
if (libecap:
const libecap::Area &uri = requestLine->uri();
if (strnstr(uri.start, "playboy", uri.size) != NULL) {
// make this adapter non-callable
libecap:
hostx = 0;
x->blockVirg
return;
}
}
// make this adapter non-callable
libecap:
hostx = 0;
// tell the host to use the virgin message
x->useVirgin();
}
This is with squid 3.2.0.9, 3.2.0.10 & 3.2.0.10-20110811 on Debian 6.0 and CentOS 6.0.
Configured with --enable-ecap --enable-ssl & --enable-ssl-crtd (among other things.)
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- eCAP Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Alex Rousskov
- Solved:
- Last query:
- Last reply: