cryptoservices/certificateandkeymgmt/tpkixcert_tef/src/validateteststep.cpp
changeset 80 b4bf7a662141
parent 8 35751d3474b7
equal deleted inserted replaced
71:dd83586b62d6 80:b4bf7a662141
     1 /*
     1 /*
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2008-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".
   121 		GetIntFromConfig(aConfigSection, *key, policyIndex);
   121 		GetIntFromConfig(aConfigSection, *key, policyIndex);
   122 		
   122 		
   123 		if (policyIndex > 0)
   123 		if (policyIndex > 0)
   124 			{
   124 			{
   125 			TValidationError error = (TValidationError) qualifierWarning;
   125 			TValidationError error = (TValidationError) qualifierWarning;
   126 			processedPolicyQualifiers.Append(TValidationStatus(error, policyIndex));
   126 			processedPolicyQualifiers.AppendL(TValidationStatus(error, policyIndex));
   127 			}
   127 			}
   128 
   128 
   129 		CleanupStack::PopAndDestroy(key);
   129 		CleanupStack::PopAndDestroy(key);
   130 		}
   130 		}
   131 	
   131 	
   155 		
   155 		
   156 		processedConfigOldWarnings.Reset();
   156 		processedConfigOldWarnings.Reset();
   157 		for (TInt i=0; i < configOldWarnings.Count(); ++i)
   157 		for (TInt i=0; i < configOldWarnings.Count(); ++i)
   158 			{
   158 			{
   159 			TValidationError error = (TValidationError) configOldWarnings[i];
   159 			TValidationError error = (TValidationError) configOldWarnings[i];
   160 			processedConfigOldWarnings.Append(TValidationStatus(error, cert_index));
   160 			processedConfigOldWarnings.AppendL(TValidationStatus(error, cert_index));
   161 			}
   161 			}
   162 		
   162 		
   163 		TransferToNewWarningsL(configOldWarnings, configNewWarnings, cert_index);
   163 		TransferToNewWarningsL(configOldWarnings, configNewWarnings, cert_index);
   164 		
   164 		
   165 		ptr.Zero();	
   165 		ptr.Zero();	
   196 		GetIntFromConfig(aConfigSection, *key, policyIndex);
   196 		GetIntFromConfig(aConfigSection, *key, policyIndex);
   197 			
   197 			
   198 		if (policyIndex > 0)
   198 		if (policyIndex > 0)
   199 			{
   199 			{
   200 			TValidationError error = (TValidationError) qualifierWarning;
   200 			TValidationError error = (TValidationError) qualifierWarning;
   201 			configNewWarnings.Append(TValidationStatus(error, policyIndex));
   201 			configNewWarnings.AppendL(TValidationStatus(error, policyIndex));
   202 			}
   202 			}
   203 
   203 
   204 		CleanupStack::PopAndDestroy(key);
   204 		CleanupStack::PopAndDestroy(key);
   205 			
   205 			
   206 		//check new warnings behave correctly
   206 		//check new warnings behave correctly