securityanddataprivacytools/securitytools/certapp/encdec/filecertstore.cpp
branchRCL_3
changeset 53 b38692a04122
parent 8 35751d3474b7
child 61 641f389e9157
equal deleted inserted replaced
50:07c4e3a0535d 53:b38692a04122
     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".
   284 		}
   284 		}
   285 
   285 
   286 	if(iCertInfo.CertificateFormat() == EX509Certificate)
   286 	if(iCertInfo.CertificateFormat() == EX509Certificate)
   287 		{
   287 		{
   288 		TKeyIdentifier subjectKeyId;
   288 		TKeyIdentifier subjectKeyId;
   289 		
   289 		bool isCA = ( iCertInfo.CertificateOwnerType() != EUserCertificate );
       
   290 
   290 		// nb. If processing a swicertstore we ignore any SubjectKeyId in the extension.
   291 		// nb. If processing a swicertstore we ignore any SubjectKeyId in the extension.
   291 		if(X509SubjectKeyId((iSwiMode)?(KIgnoreCertificateExtension) : (KUseCertificateExtension), 
   292 		if(X509SubjectKeyId((iSwiMode)?(KIgnoreCertificateExtension) : (KUseCertificateExtension), 
   292 							false,
   293 							false, isCA,
   293 							iCertData,
   294 							iCertData,
   294 							iCertSubject, subjectKeyId))
   295 							iCertSubject, subjectKeyId))
   295 			{
   296 			{
   296 			prog << Log::Indent() << "Subject = '" << iCertSubject << "'" << Log::Endl();
   297 			prog << Log::Indent() << "Subject = '" << iCertSubject << "'" << Log::Endl();
   297 
   298