MCPcopy Create free account
hub / github.com/USBGuard/usbguard / updateHashLinuxRootHubDeviceDescriptor

Method updateHashLinuxRootHubDeviceDescriptor

src/Library/DeviceBase.cpp:250–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248 }
249
250 void DeviceBase::updateHashLinuxRootHubDeviceDescriptor(const USBDescriptor* const descriptor)
251 {
252 USBGUARD_LOG(Trace);
253 USBDeviceDescriptor descriptor_modified = *reinterpret_cast<const USBDeviceDescriptor*>(descriptor);
254 descriptor_modified.bcdDevice = 0;
255 updateHash(&descriptor_modified, sizeof descriptor_modified);
256 }
257
258} /* namespace usbguard */
259

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected