Revision: 201033 RCL_3
authorDremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 19 Aug 2010 11:38:48 +0300
branchRCL_3
changeset 60 f18401adf8e1
parent 58 a5e05e7296f9
child 61 641f389e9157
Revision: 201033 Kit: 201033
contentmgmt/cafrecogniserconfig/ABLD.BAT
contentmgmt/cafrecogniserconfig/ReccafConfig.iby
contentmgmt/referencedrmagent/RefTestAgent/group/ABLD.BAT
crypto/weakcryptospi/group/ABLD.BAT
cryptomgmtlibs/securityutils/group/bld.inf
cryptoservices/certificateandkeymgmt/pkixcertbase/Pkixchainbuilder.cpp
securityanddataprivacytools/securityconfig/ocsp/ocspcenrep.iby
securityanddataprivacytools/securityconfig/tlsprovider/tlsproviderconfig.iby
securityanddataprivacytools/securityconfig/ups/ups_config.iby
--- a/contentmgmt/cafrecogniserconfig/ABLD.BAT	Mon Jun 21 17:40:35 2010 +0300
+++ b/contentmgmt/cafrecogniserconfig/ABLD.BAT	Thu Aug 19 11:38:48 2010 +0300
@@ -3,7 +3,7 @@
 REM Bldmake-generated batch file - ABLD.BAT
 REM ** DO NOT EDIT **
 
-perl -S ABLD.PL "\sf\os\security\contentmgmt\cafrecogniserconfig\\" %1 %2 %3 %4 %5 %6 %7 %8 %9
+perl -S abld.pl "\sf\os\security\contentmgmt\cafrecogniserconfig\\" %1 %2 %3 %4 %5 %6 %7 %8 %9
 if errorlevel==1 goto CheckPerl
 goto End
 
--- a/contentmgmt/cafrecogniserconfig/ReccafConfig.iby	Mon Jun 21 17:40:35 2010 +0300
+++ b/contentmgmt/cafrecogniserconfig/ReccafConfig.iby	Thu Aug 19 11:38:48 2010 +0300
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of the License "Eclipse Public License v1.0"
@@ -19,6 +19,6 @@
 #define __RECCAFCONFIG_IBY__
 
 // Store file in Apparc Server Private Directory
-data=ZPRIVATE\10003A3F\RecCaf\RecCafMimeTypes.txt 	\private\10003a3f\RecCaf\RecCafMimeTypes.txt
+data=ZPRIVATE\10003a3f\reccaf\reccafmimetypes.txt 	\private\10003a3f\reccaf\reccafmimetypes.txt
 
 #endif
--- a/contentmgmt/referencedrmagent/RefTestAgent/group/ABLD.BAT	Mon Jun 21 17:40:35 2010 +0300
+++ b/contentmgmt/referencedrmagent/RefTestAgent/group/ABLD.BAT	Thu Aug 19 11:38:48 2010 +0300
@@ -3,7 +3,7 @@
 REM Bldmake-generated batch file - ABLD.BAT
 REM ** DO NOT EDIT **
 
-perl -S ABLD.PL "\sf\os\security\contentmgmt\referencedrmagent\RefTestAgent\group\\" %1 %2 %3 %4 %5 %6 %7 %8 %9
+perl -S abld.pl "\sf\os\security\contentmgmt\referencedrmagent\RefTestAgent\group\\" %1 %2 %3 %4 %5 %6 %7 %8 %9
 if errorlevel==1 goto CheckPerl
 goto End
 
--- a/crypto/weakcryptospi/group/ABLD.BAT	Mon Jun 21 17:40:35 2010 +0300
+++ b/crypto/weakcryptospi/group/ABLD.BAT	Thu Aug 19 11:38:48 2010 +0300
@@ -3,7 +3,7 @@
 REM Bldmake-generated batch file - ABLD.BAT
 REM ** DO NOT EDIT **
 
-perl -S ABLD.PL "\sf\os\security\crypto\weakcryptospi\group\\" %1 %2 %3 %4 %5 %6 %7 %8 %9
+perl -S abld.pl "\sf\os\security\crypto\weakcryptospi\group\\" %1 %2 %3 %4 %5 %6 %7 %8 %9
 if errorlevel==1 goto CheckPerl
 goto End
 
--- a/cryptomgmtlibs/securityutils/group/bld.inf	Mon Jun 21 17:40:35 2010 +0300
+++ b/cryptomgmtlibs/securityutils/group/bld.inf	Thu Aug 19 11:38:48 2010 +0300
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of the License "Eclipse Public License v1.0"
@@ -34,7 +34,7 @@
 // ROMKIT includes
 ../inc/secutil.iby 	/epoc32/rom/include/secutil.iby
 ../inc/sectcbutil.iby	/epoc32/rom/include/sectcbutil.iby
-../inc/SecSettings.iby			/epoc32/rom/include/SecSettings.iby
+../inc/secsettings.iby			/epoc32/rom/include/secsettings.iby
 
 
 PRJ_TESTEXPORTS
--- a/cryptoservices/certificateandkeymgmt/pkixcertbase/Pkixchainbuilder.cpp	Mon Jun 21 17:40:35 2010 +0300
+++ b/cryptoservices/certificateandkeymgmt/pkixcertbase/Pkixchainbuilder.cpp	Thu Aug 19 11:38:48 2010 +0300
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 1997-2010 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of the License "Eclipse Public License v1.0"
@@ -150,6 +150,34 @@
 			}
 		CleanupStack::PopAndDestroy();//aki
 		}
+	
+	// If more then one subject matching candidates are found and they doesn't contain SKI/AKI,
+	// consider the most recently imported/added candidate as the issuer.
+	for(TInt index = count - 1; index >= 0; --index)
+		{
+		TTime currentTime;
+		// if secure time is not available then fall back to the insecure version.
+		if(currentTime.UniversalTimeSecure() == KErrNoSecureTime)
+			{
+			currentTime.UniversalTime();
+			}
+
+		CX509Certificate* cert = CX509Certificate::NewLC(*aCandidates[index]);
+		// SKI/AKI are optional in versions lower than 3. So, relax the candidate selection rules only for version 1 & 2
+		// If the recent candidate is not valid enough(cert expired), consider it's previous valid candidate.
+		if((cert->Version() < 3) && (cert->ValidityPeriod().Valid(currentTime)))
+			{				
+			aChain.AppendL(cert);
+			++(*iNumberOfCertsAdded);
+			CleanupStack::Pop(cert);
+			return ETrue;				
+			}
+		else
+			{
+			CleanupStack::PopAndDestroy(cert);
+			continue;
+			}			
+		}
 
 	return EFalse;
 	}
--- a/securityanddataprivacytools/securityconfig/ocsp/ocspcenrep.iby	Mon Jun 21 17:40:35 2010 +0300
+++ b/securityanddataprivacytools/securityconfig/ocsp/ocspcenrep.iby	Thu Aug 19 11:38:48 2010 +0300
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of the License "Eclipse Public License v1.0"
@@ -19,7 +19,7 @@
 #ifndef __OCSPCENREP_IBY__
 #define __OCSPCENREP_IBY__
 
-data=ZPRIVATE\10202BE9\2002b28b.txt private\10202be9\2002b28b.txt
+data=ZPRIVATE\10202be9\2002b28b.txt private\10202be9\2002b28b.txt
 
 #endif // __OCSPCENREP_IBY__
 
--- a/securityanddataprivacytools/securityconfig/tlsprovider/tlsproviderconfig.iby	Mon Jun 21 17:40:35 2010 +0300
+++ b/securityanddataprivacytools/securityconfig/tlsprovider/tlsproviderconfig.iby	Thu Aug 19 11:38:48 2010 +0300
@@ -1,8 +1,8 @@
 /*
-* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
-* under the terms of the License "Eclipse Public License v1.0"
+* under the terms of "Eclipse Public License v1.0"
 * which accompanies this distribution, and is available
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
 *
@@ -22,6 +22,6 @@
 
 data=ZRESOURCE\tlsproviderpolicy.ini 	\Resource\tlsproviderpolicy.ini
 data=MULTI_LINGUIFY(RSC ZRESOURCE\swtlstokentype resource\swtlstokentype)
-data=MULTI_LINGUIFY(RSC ZRESOURCE\TlsCacheServer\TlsCacheTimeouts resource\TlsCacheServer\TlsCacheTimeouts)
+data=MULTI_LINGUIFY(RSC ZRESOURCE\tlscacheserver\tlscachetimeouts resource\tlscacheserver\tlscachetimeouts)
 
 #endif
--- a/securityanddataprivacytools/securityconfig/ups/ups_config.iby	Mon Jun 21 17:40:35 2010 +0300
+++ b/securityanddataprivacytools/securityconfig/ups/ups_config.iby	Thu Aug 19 11:38:48 2010 +0300
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of the License "Eclipse Public License v1.0"
@@ -19,10 +19,10 @@
 
 #ifndef __UPS_CONFIG_IBY__
 #define __UPS_CONFIG_IBY__
-define ZDRIVE EPOCROOT##epoc32\data\Z
+define ZDRIVE EPOCROOT##epoc32\data\z
 
 data=ZDRIVE\system\install\upsserver.sis 		system\install\upsserver.sis
-data=ZDRIVE\Private\10283558\backup_registration.xml	private\10283558\backup_registration.xml
+data=ZDRIVE\private\10283558\backup_registration.xml	private\10283558\backup_registration.xml
 
 #endif