cryptoservices/certificateandkeymgmt/x509/x509cert.cpp
changeset 65 970c0057d9bc
parent 60 11c66574c2a2
equal deleted inserted replaced
60:11c66574c2a2 65:970c0057d9bc
  1337 		
  1337 		
  1338 	return KeyIdentifierL();
  1338 	return KeyIdentifierL();
  1339 	}
  1339 	}
  1340 
  1340 
  1341 
  1341 
  1342 EXPORT_C TKeyIdentifier CX509Certificate::SubjectKeyIdL()
  1342 EXPORT_C TKeyIdentifier CX509Certificate::SubjectKeyIdL() const
  1343 	{
  1343 	{
  1344 	// if it is a v1 or v2 type then there is no way of knowing which is a CA, treat all certs as CA as done in the certificate recognizer.
  1344 	// if it is a v1 or v2 type then there is no way of knowing which is a CA, treat all certs as CA as done in the certificate recognizer.
  1345 	if (Version() != 3 )
  1345 	if (Version() < 3 )
  1346 		{
  1346 		{
  1347 		return SubjectKeyIdentifierL();
  1347 		return SubjectKeyIdentifierL();
  1348 		}
  1348 		}
  1349 	
  1349 	
  1350 	// if it is x509 v3 certificate then check for the basic constraint extension.
  1350 	// if it is x509 v3 certificate then check for the basic constraint extension.