securityanddataprivacytools/securitytools/certapp/encdec/filecertstore.cpp
changeset 65 970c0057d9bc
parent 8 35751d3474b7
child 108 ca9a0fc2f082
equal deleted inserted replaced
60:11c66574c2a2 65:970c0057d9bc
   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