Skip to content

Commit

Permalink
ready
Browse files Browse the repository at this point in the history
  • Loading branch information
zaolin committed Dec 28, 2010
1 parent 886f48d commit f85ea51
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions trusted_computing/src/core/tpmcrypt_mount/main.cxx
Expand Up @@ -213,19 +213,25 @@ int main(int argc, const char *argv[])

string compare = userOption.getValue();
vector<string> platforms = getPlatforms(compare);
vector<string>::const_iterator i;
for(i = platforms.begin(); i != platforms.end(); i++)
if( platforms.size() != 0 )
{
vector<string>::const_iterator i;
for(i = platforms.begin(); i != platforms.end(); i++)
{
platform = "Platform_" + (*i);
TpmCryptSubject mySubject(platform, mySubjectStorage);
platformName = mySubject.getMySubjectName();
verified = mySubject.verifyAuth(platformName);
cout << "***************************************************************" << endl << "************" << "Please verify the Auth Secret" << "************" << endl;
cout << "****************************" << verified << "****************************" << endl;
cout << "***************************************************************" << endl;
sleep(2);
platform.clear();
platformName.clear();
}
}
else
{
platform = "Platform_" + (*i);
TpmCryptSubject mySubject(platform, mySubjectStorage);
platformName = mySubject.getMySubjectName();
verified = mySubject.verifyAuth(platformName);
cout << "***************************************************************" << endl << "************" << "Please verify the Auth Secret" << "************" << endl;
cout << "****************************" << verified << "****************************" << endl;
cout << "***************************************************************" << endl;
sleep(2);
platform.clear();
platformName.clear();
}
}

Expand Down

0 comments on commit f85ea51

Please sign in to comment.