mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
無線ファームの署名チェック失敗を無視させるオプションを追加(デフォルトは無効)。
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@1177 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
d408a36747
commit
8018ac94e5
@ -32,6 +32,8 @@
|
|||||||
definitions
|
definitions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define IGNORE_SIGN_ERROR 0
|
||||||
|
|
||||||
/* LCFGの無線ファームバージョンをタイトルIDとしてそのまま使う場合 */
|
/* LCFGの無線ファームバージョンをタイトルIDとしてそのまま使う場合 */
|
||||||
#define USE_LCFG_STRING 0
|
#define USE_LCFG_STRING 0
|
||||||
|
|
||||||
@ -258,14 +260,21 @@ BOOL VerifyWlanfirmSignature(u8* buffer, u32 length)
|
|||||||
if (FALSE == SVC_DecryptSign( &rctx, signDigest, (const void*)pSign, (const void*)pPubkey ))
|
if (FALSE == SVC_DecryptSign( &rctx, signDigest, (const void*)pSign, (const void*)pPubkey ))
|
||||||
{
|
{
|
||||||
OS_TPrintf("[Wlan Firm] Wlan Firmware authentication has failed.\n");
|
OS_TPrintf("[Wlan Firm] Wlan Firmware authentication has failed.\n");
|
||||||
|
|
||||||
|
#if (IGNORE_SIGN_ERROR == 1)
|
||||||
|
|
||||||
/* continue verifying process even though decryption fails
|
/* continue verifying process even though decryption fails
|
||||||
in the case of bonding option = 0x01 (support ARM9/ARM7) */
|
in the case of bonding option = 0x01 (support ARM9/ARM7) */
|
||||||
if (!( HWi_WSYS08_OP_OP0_MASK == SCFG_ReadBondingOption() ))
|
if (!( HWi_WSYS08_OP_OP0_MASK == SCFG_ReadBondingOption() ))
|
||||||
{
|
{
|
||||||
|
#endif
|
||||||
SYSM_Free(signHeap);
|
SYSM_Free(signHeap);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
#if (IGNORE_SIGN_ERROR == 1)
|
||||||
}
|
}
|
||||||
OS_TPrintf("[Wlan Firm] But installation continues.\n");
|
OS_TPrintf("[Wlan Firm] But installation continues.\n");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
SYSM_Free(signHeap);
|
SYSM_Free(signHeap);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user