This commit is contained in:
giantpune@gmail.com 2011-04-28 22:35:29 +00:00
parent c75547111b
commit f8b3416a26

View File

@ -711,8 +711,6 @@ bool CheckTitleIntegrity( quint64 tid )
} }
} }
else else
{
if( calcRsa )
{ {
Ticket ticket( ba, false ); Ticket ticket( ba, false );
if( ticket.Tid() != tid ) if( ticket.Tid() != tid )
@ -720,6 +718,8 @@ bool CheckTitleIntegrity( quint64 tid )
qWarning() << "\tthe ticket contains the wrong TID"; qWarning() << "\tthe ticket contains the wrong TID";
return false; return false;
} }
if( calcRsa )
{
int tikVersions = ba.size() / 0x2a4; int tikVersions = ba.size() / 0x2a4;
qint32 ch = ERROR_RSA_TYPE_UNKNOWN; qint32 ch = ERROR_RSA_TYPE_UNKNOWN;
bool ok = false; bool ok = false;