Actions
Bug #1563
closedNeed to check for null return value from SecTpmOsx::Impl::getKey
Start date:
04/30/2014
Due date:
% Done:
100%
Estimated time:
Description
If SecTpmOsx::Impl::getKey does not find the key, it returns null. But other functions in SecTpmOsx don't check this. For example, signInTpmInternal will seg fault if the keyName is not found because it passes the result of getKey to SecSignTransformCreate without checking for null.
To be consistent with SecTpmFile::signInTpm, maybe signInTpmInternal (and others) should throw an exception if getKey returns null.
Actions