無線ファームの署名チェック失敗を無視させるオプションを追加(デフォルトは無効)。

git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@1177 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
sato_masaki 2008-04-17 13:27:27 +00:00
parent d408a36747
commit 8018ac94e5

View File

@ -32,6 +32,8 @@
definitions
*/
#define IGNORE_SIGN_ERROR 0
/* LCFGの無線ファームバージョンをタイトルとしてそのまま使う場合 */
#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 ))
{
OS_TPrintf("[Wlan Firm] Wlan Firmware authentication has failed.\n");
#if (IGNORE_SIGN_ERROR == 1)
/* continue verifying process even though decryption fails
in the case of bonding option = 0x01 (support ARM9/ARM7) */
if (!( HWi_WSYS08_OP_OP0_MASK == SCFG_ReadBondingOption() ))
{
#endif
SYSM_Free(signHeap);
return FALSE;
#if (IGNORE_SIGN_ERROR == 1)
}
OS_TPrintf("[Wlan Firm] But installation continues.\n");
#endif
}
SYSM_Free(signHeap);