mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 09:58:54 +00:00
bug: Fix for sslv3 handshake failure in the file carver (#4109)
This commit is contained in:
parent
7d7ed9de61
commit
ef7130b49f
@ -238,6 +238,7 @@ Status Carver::carve(const boost::filesystem::path& path) {
|
||||
|
||||
Status Carver::postCarve(const boost::filesystem::path& path) {
|
||||
auto startRequest = Request<TLSTransport, JSONSerializer>(startUri_);
|
||||
startRequest.setOption("hostname", FLAGS_tls_hostname);
|
||||
|
||||
// Perform the start request to get the session id
|
||||
PlatformFile pFile(path, PF_OPEN_EXISTING | PF_READ);
|
||||
@ -271,6 +272,7 @@ Status Carver::postCarve(const boost::filesystem::path& path) {
|
||||
}
|
||||
|
||||
auto contRequest = Request<TLSTransport, JSONSerializer>(contUri_);
|
||||
contRequest.setOption("hostname", FLAGS_tls_hostname);
|
||||
for (size_t i = 0; i < blkCount; i++) {
|
||||
std::vector<char> block(FLAGS_carver_block_size, 0);
|
||||
auto r = pFile.read(block.data(), FLAGS_carver_block_size);
|
||||
|
Loading…
Reference in New Issue
Block a user