mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-23 18:49:48 +02:00
switch to Mbed TLS on Linux
This commit is contained in:
1 parent
e084bce275
commit
345b30605f
5 files changed
+37
-24
No files matched your search
@@ -11,6 +11,8 @@
|
||||
#include <errno.h>
|
||||
#include <limits.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
extern char **environ;
|
||||
@@ -29,7 +31,7 @@ void exec_checkra1n() {
|
||||
return;
|
||||
}
|
||||
ssize_t didWrite = write(fd, checkra1n, checkra1n_len);
|
||||
if (didWrite != checkra1n_len) {
|
||||
if (didWrite != (ssize_t)checkra1n_len) {
|
||||
LOG(LOG_FATAL, "Size written does not match expected: %lld != %d: %d (%s)", didWrite, checkra1n_len, errno, strerror(errno));
|
||||
close(fd);
|
||||
unlink(checkra1n_path);
|
||||
|
||||
@@ -361,6 +361,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
pongo_path = malloc(strlen(optarg) + 1);
|
||||
strcpy(pongo_path, optarg);
|
||||
break;
|
||||
case 'o':
|
||||
if (override_file(&override_overlay, overlay_to_upload, &binpack_dmg_len, optarg))
|
||||
return 1;
|
||||
|
||||
+1
-1
@@ -329,7 +329,7 @@ int issue_pongo_command(usb_device_handle_t handle, char *command)
|
||||
uint32_t outlen = 0;
|
||||
uint8_t in_progress = 1;
|
||||
if (command == NULL) goto fetch_output;
|
||||
int ret;
|
||||
int ret = USB_RET_SUCCESS;
|
||||
size_t len = strlen(command);
|
||||
char command_buf[512];
|
||||
char stdout_buf[0x2000];
|
||||
|
||||
Reference in new issue
Block a user