cryptoservices/certificateandkeymgmt/tpkixcert/Taction_build.cpp
branchRCL_3
changeset 58 a5e05e7296f9
parent 8 35751d3474b7
equal deleted inserted replaced
53:b38692a04122 58:a5e05e7296f9
     1 /*
     1 /*
     2 * Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 1998-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Eclipse Public License v1.0"
     5 * under the terms of the License "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
   159 	while(AddCert(*aBody, KInitStart, KInitEnd, pos, *iInitCertsFileName,
   159 	while(AddCert(*aBody, KInitStart, KInitEnd, pos, *iInitCertsFileName,
   160 		*iInitCertsLabel))
   160 		*iInitCertsLabel))
   161 		{
   161 		{
   162 		}
   162 		}
   163 
   163 
   164 	while(AddAddCalls(*aBody, pos))
   164 	while(AddAddCallsL(*aBody, pos))
   165 		{
   165 		{
   166 		}
   166 		}
   167 
   167 
   168 	iValidationResult = CPKIXValidationResult::NewL();
   168 	iValidationResult = CPKIXValidationResult::NewL();
   169 	
   169 	
   352 		return ETrue;
   352 		return ETrue;
   353 		}
   353 		}
   354 	return EFalse;
   354 	return EFalse;
   355 	} 
   355 	} 
   356 
   356 
   357 TBool CTestActionBuild::AddAddCalls(const TDesC& aBuf, TInt& aPos)
   357 TBool CTestActionBuild::AddAddCallsL(const TDesC& aBuf, TInt& aPos)
   358 	{
   358 	{
   359 	TPtrC addCallsBuf = Input::ParseElement(aBuf, KAddCallStart, KAddCallEnd, aPos);
   359 	TPtrC addCallsBuf = Input::ParseElement(aBuf, KAddCallStart, KAddCallEnd, aPos);
   360 	if (addCallsBuf != KNullDesC)
   360 	if (addCallsBuf != KNullDesC)
   361 		{
   361 		{
   362 		CAddCall* addCall = CAddCall::NewL(addCallsBuf);
   362 		CAddCall* addCall = CAddCall::NewLC(addCallsBuf);		
   363 		iAddCalls.Append(addCall);
   363 		iAddCalls.AppendL(addCall);
       
   364 		CleanupStack::Pop(addCall);
   364 		return ETrue;
   365 		return ETrue;
   365 		}
   366 		}
   366 	return EFalse;
   367 	return EFalse;
   367 	}
   368 	}
   368 
   369