From db663abb4d7fd66b5433d46d46b7cdeda22fccdc Mon Sep 17 00:00:00 2001 From: Joshua Hill Date: Sun, 23 May 2010 12:40:06 -0400 Subject: TSS stitching and loading of signed iBEC is now working, but launching from recovery mode causes libusb to fail unreferencing the device --- src/img3.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/img3.h') diff --git a/src/img3.h b/src/img3.h index f2519f0..a19ae99 100644 --- a/src/img3.h +++ b/src/img3.h @@ -79,10 +79,11 @@ typedef struct { img3_element* cert_element; } img3_file; -img3_file* img3_parse_file(unsigned char* data, int size); +img3_file* img3_parse_file(char* data, int size); img3_element* img3_parse_element(char* data); -void img3_replace_signature(img3_file* image, char* signature); +int img3_replace_signature(img3_file* image, char* signature); void img3_free(img3_file* image); -char* img3_get_data(img3_file* image); +int img3_get_data(img3_file* image, char** pdata, int* psize); +void img3_free_element(img3_element* element); #endif -- cgit v1.1-32-gdbae