Index: sw/Makefile =================================================================== RCS file: /home/routefree/gba/depot/sw/Makefile,v retrieving revision 1.19 retrieving revision 1.19.4.1 diff -r1.19 -r1.19.4.1 8c8,9 < SUBDIRS = devroot import common linux cygwin tools sc gba rvl dv host win32 --- > SUBDIRS = devroot common linux tools sc rvl > #SUBDIRS = devroot import common linux cygwin tools sc gba rvl dv host win32 Index: sw/common/os/es/es_mgr.c =================================================================== RCS file: /home/routefree/gba/depot/sw/common/os/es/es_mgr.c,v retrieving revision 1.87 retrieving revision 1.87.8.1 diff -r1.87 -r1.87.8.1 792c792,793 < if (args->readCount != 4 || --- > if (ctx->uid != IOS_DI_PROCESS || /* Only accept this from DI RM */ > args->readCount != 4 || 814c815,816 < if (args->readCount != 4 || --- > if (ctx->uid != IOS_DI_PROCESS || /* Only accept this from DI RM */ > args->readCount != 4 || Index: sw/sc/Makefile =================================================================== RCS file: /home/routefree/gba/depot/sw/sc/Makefile,v retrieving revision 1.7 retrieving revision 1.7.32.1 diff -r1.7 -r1.7.32.1 3c3 < SUBDIRS = include lib boot os apps tests --- > SUBDIRS = include lib boot os # apps tests Index: sw/sc/lib/Makefile =================================================================== RCS file: /home/routefree/gba/depot/sw/sc/lib/Makefile,v retrieving revision 1.27 retrieving revision 1.27.6.1 diff -r1.27 -r1.27.6.1 3c3 < SUBDIRS = ios iosc bsl csl ioslibc rtc wa fs es vio audbuf vsofts \ --- > SUBDIRS = ios iosc bsl csl ioslibc rtc wa fs es vio audbuf vsofts # \ Index: sw/sc/os/Makefile =================================================================== RCS file: /home/routefree/gba/depot/sw/sc/os/Makefile,v retrieving revision 1.19 retrieving revision 1.19.8.1 diff -r1.19 -r1.19.8.1 3c3 < SUBDIRS = sk fs usb es aud tests socp p2p --- > SUBDIRS = sk fs usb es aud tests # socp p2p Index: sw/tools/Makefile =================================================================== RCS file: /home/routefree/gba/depot/sw/tools/Makefile,v retrieving revision 1.11 retrieving revision 1.11.4.1 diff -r1.11 -r1.11.4.1 3c3 < SUBDIRS = lib aes sim conv elf-merge es usb win32 --- > SUBDIRS = lib aes sim conv elf-merge es # usb win32 Index: sw/tools/lib/librsa/rsautil.c =================================================================== RCS file: /home/routefree/gba/depot/sw/tools/lib/librsa/rsautil.c,v retrieving revision 1.15 retrieving revision 1.15.4.1 diff -r1.15 -r1.15.4.1 12a13,17 > /* sha1 rsa signature, PKCS1 type 2 */ > > unsigned char RUTIL_sha1_sig[16] = { 0x00, > 0x30, 0x21, 0x30, 0x09, 0x06, 0x05, 0x2b, 0x0e, > 0x03, 0x02, 0x1a, 0x05, 0x00, 0x04, 0x14 }; 58,61d62 < unsigned char sha1_sig[16] = { 0x00, < 0x30, 0x21, 0x30, 0x09, 0x06, 0x05, 0x2b, 0x0e, < 0x03, 0x02, 0x1a, 0x05, 0x00, 0x04, 0x14 < }; 80,81c81,82 < memcpy(padded_data + rsasize - sizeof(hash_data) - sizeof(sha1_sig), < sha1_sig, sizeof(sha1_sig)); --- > memcpy(padded_data + rsasize - sizeof(hash_data) - sizeof(RUTIL_sha1_sig), > RUTIL_sha1_sig, sizeof(RUTIL_sha1_sig)); 116a118 > unsigned char *p, match; 141,143c143,147 < < if(memcmp(verify + newsize - sizeof(hash_data), hash_data, sizeof(hash_data)) ==0){ < return 0; --- > > p = verify; > match = (p[0] == 0x00) & (p[1] == 0x01); > for(p += 2; p < verify + newsize - sizeof(CSLOSSha1Hash) - sizeof(RUTIL_sha1_sig);) { > match &= (*p++ == 0xff); 145,146c149,150 < else{ < return -1; --- > for(i = 0; i < sizeof(RUTIL_sha1_sig); i++) { > match &= (*p++ == RUTIL_sha1_sig[i]); 148c152,155 < --- > for(i = 0; i < sizeof(CSLOSSha1Hash); i++) { > match &= (*p++ == hash_data[i]); > } > return(match? 0 : -1);