cryptoservices/filebasedcertificateandkeystores/test/keytool/keytool_utils.cpp
changeset 8 35751d3474b7
parent 0 2c201484c85f
child 19 ece3df019add
equal deleted inserted replaced
2:675a964f4eb5 8:35751d3474b7
   709   		PrintInfoL(_L("No Certificate Exist"));	
   709   		PrintInfoL(_L("No Certificate Exist"));	
   710   		PrintInfoL(newline);
   710   		PrintInfoL(newline);
   711   		}
   711   		}
   712 	}
   712 	}
   713 
   713 
   714 /*static*/ void KeyToolUtils::PrintCertInfoL(CCTCertInfo& aCertInfo, CCertificate& aCertificate,RArray<TUid> aApps, TBool aIsDetailed,TBool aPageWise)
   714 /*static*/ void KeyToolUtils::PrintCertInfoL(CCTCertInfo& aCertInfo, CCertificate& aCertificate,RArray<TUid> aApps, TBool aTrusted, TBool aIsDetailed,TBool aPageWise)
   715 	{
   715 	{
   716 	TFileName certFormat,ownerType;
   716 	TFileName certFormat,ownerType;
   717 
   717 
   718 	switch (aCertInfo.CertificateFormat())
   718 	switch (aCertInfo.CertificateFormat())
   719 		{
   719 		{
   832 		{
   832 		{
   833 		PrintInfoL(Uid2Des(aApps[k]), aPageWise);
   833 		PrintInfoL(Uid2Des(aApps[k]), aPageWise);
   834 		PrintInfoL(_L("  "));
   834 		PrintInfoL(_L("  "));
   835 		}
   835 		}
   836 	PrintInfoL(newline, aPageWise);
   836 	PrintInfoL(newline, aPageWise);
       
   837 	PrintInfoL(_L("\tMarked as trusted: "));
       
   838 	PrintInfoL( aTrusted ? _L("Yes"): _L("No"));
       
   839 	PrintInfoL(newline, aPageWise);
   837 	}
   840 	}
   838 	
   841 	
   839 void KeyToolUtils::SetConsole(CConsoleBase *aConsole )
   842 void KeyToolUtils::SetConsole(CConsoleBase *aConsole )
   840 	{
   843 	{
   841 	iConsole = aConsole;
   844 	iConsole = aConsole;
   881 		iFile->Seek(ESeekEnd, seekPos);
   884 		iFile->Seek(ESeekEnd, seekPos);
   882 		User::LeaveIfError(iFile->Write(buf8));
   885 		User::LeaveIfError(iFile->Write(buf8));
   883 		}
   886 		}
   884 	}
   887 	}
   885 	
   888 	
       
   889