Remove custom libusb, never really modified it
This commit is contained in:
@@ -11,4 +11,4 @@ add_custom_command(TARGET checkm8_remote POST_BUILD
|
||||
${CMAKE_SOURCE_DIR}/c8_payloads/bin
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/bin/payloads)
|
||||
|
||||
target_link_libraries(checkm8_remote checkm8_libusb pthread udev)
|
||||
target_link_libraries(checkm8_remote usb-1.0 pthread udev)
|
||||
@@ -6,8 +6,6 @@
|
||||
#define MAX_PACKET_SIZE 0x800
|
||||
|
||||
#ifndef WITH_ARDUINO
|
||||
#include "libusb.h"
|
||||
|
||||
struct libusb_device_bundle
|
||||
{
|
||||
struct libusb_context *ctx;
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "libusbi.h"
|
||||
#include <libusb.h>
|
||||
|
||||
#endif
|
||||
|
||||
@@ -124,7 +124,6 @@ int open_device_session(struct pwned_device *dev)
|
||||
if(dev->bundle->ctx == NULL)
|
||||
{
|
||||
checkm8_debug_indent("\tbundle ctx is NULL, allocating\n");
|
||||
dev->bundle->ctx = malloc(sizeof(libusb_context));
|
||||
libusb_init(&dev->bundle->ctx);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user