Skip to content

Commit 0a60008

Browse files
authored
Fix raw, req/resp printing via libtatsu update (#52)
* Fix raw, req/resp printing via libtatsu update * Update libtatsu repo for CI
1 parent 809675e commit 0a60008

File tree

7 files changed

+12
-6
lines changed

7 files changed

+12
-6
lines changed

.github/workflows/build_release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ env:
1414
WOLFSSL_VERSION: 5.6.3
1515
OPENSSL_VERSION: 3.1.7
1616
LIBCURL_VERSION: 7.79.1
17-
LIBTATSU_VERSION: 1.0.4
17+
LIBTATSU_VERSION: 1.0.5
1818

1919
jobs:
2020

@@ -298,7 +298,7 @@ jobs:
298298
- name: build libtatsu
299299
run: |
300300
wget -q -nc -P ${BUILD_SOURCE} \
301-
https://github.com/libimobiledevice/libtatsu/archive/${LIBTATSU_VERSION}.tar.gz
301+
https://github.com/futurerestore/libtatsu/archive/${LIBTATSU_VERSION}.tar.gz
302302
tar xf ${BUILD_SOURCE}/${LIBTATSU_VERSION}.tar.gz -C ${BUILD_WORK}
303303
echo "${LIBTATSU_VERSION}" > ${BUILD_WORK}/libtatsu-${LIBTATSU_VERSION}/.tarball-version
304304
cd ${BUILD_WORK}/libtatsu-${LIBTATSU_VERSION}

dep_root/.keep

Whitespace-only changes.

dep_root/include/.keep

Whitespace-only changes.

dep_root/lib/.keep

Whitespace-only changes.

fix_dep_root.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env bash
2+
script_name=$(realpath "$0")
3+
script_base=$(dirname "$script_name")
4+
for file in $(find ${script_base}/dep_root/lib/pkgconfig -name "*.pc"); do export pkg=$(realpath $(dirname $(realpath "${file}"))/../../); pkg=$(echo $pkg | sed 's/\//\\\//g'); sed -i "s/^prefix=.*/prefix=${pkg}/g" $file; done

tsschecker/main.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,8 @@ int main(int argc, const char * argv[]) {
288288
break;
289289
case '0': // long option: "debug"; can be called as short option
290290
idevicerestore_debug = 1;
291+
tss_set_print_tss_request(1);
292+
tss_set_print_tss_response(1);
291293
tss_set_debug_level(3);
292294
break;
293295
case '1': // long option: "list-devices"; can be called as short option
@@ -300,10 +302,10 @@ int main(int argc, const char * argv[]) {
300302
shshSavePath = optarg;
301303
break;
302304
case '4': // long option: "print-tss-request"; can be called as short option
303-
print_tss_request = 1;
305+
tss_set_print_tss_request(1);
304306
break;
305307
case '5': // long option: "print-tss-response"; can be called as short option
306-
print_tss_response = 1;
308+
tss_set_print_tss_response(1);
307309
break;
308310
case '6': // long option: "beta"; can be called as short option
309311
versVals.useBeta = 1;
@@ -324,6 +326,8 @@ int main(int argc, const char * argv[]) {
324326
case 'r': // long option: "raw"; can be called as short option
325327
rawFilePath = optarg;
326328
idevicerestore_debug = 1;
329+
tss_set_print_tss_request(1);
330+
tss_set_print_tss_response(1);
327331
tss_set_debug_level(3);
328332
break;
329333
case 'c': // long option: "bbsnum"; can be called as short option

tsschecker/tsschecker.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,12 @@ extern "C" {
3737
#include "debug.h"
3838

3939
extern int dbglog;
40-
extern int print_tss_response;
4140
extern int nocache;
4241
extern int save_shshblobs;
4342
extern int update_install;
4443
extern int erase_install;
4544
extern int save_bplist;
4645
extern const char *shshSavePath;
47-
extern int print_tss_request;
4846

4947
struct bbdevice{
5048
const char *deviceModel;

0 commit comments

Comments
 (0)