forked from len0rd/rockbox
nwztools/upgtools: add support for windows
In order to avoid the crypto++ mess, the code uses the Windows Cryptography API, which is standard. There is also some makefile magic to cross-compile: make PREFIX=i686-w64-mingw32- EXE_EXT=.exe I selected the option so that it should statically link supports libraries used by gcc (slsj and libwinpthread). Change-Id: Iaf07da23afe81ed217fb3921ce13367c5441514d
This commit is contained in:
parent
05fa8fc343
commit
1f338f7078
9 changed files with 239 additions and 90 deletions
|
|
@ -22,7 +22,6 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include "md5.h"
|
||||
|
||||
struct nwz_model_t g_model_list[] =
|
||||
{
|
||||
|
|
@ -190,7 +189,7 @@ struct upg_file_t *upg_read_memory(void *buf, size_t size, const char *key,
|
|||
}
|
||||
else
|
||||
{
|
||||
cprintf(GREY, "I don't know how to decrypt with a key of length %s\n", key_len);
|
||||
cprintf(GREY, "I don't know how to decrypt with a key of length %d\n", key_len);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue