Remove custom libusb, never really modified it

This commit is contained in:
2020-01-05 16:13:19 -05:00
parent 431b51bb4e
commit 87bd68b697
25 changed files with 2 additions and 13935 deletions

View File

@@ -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)

View File

@@ -6,8 +6,6 @@
#define MAX_PACKET_SIZE 0x800
#ifndef WITH_ARDUINO
#include "libusb.h"
struct libusb_device_bundle
{
struct libusb_context *ctx;

View File

@@ -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