bug in ConvertArrayToKeyUsage

Originator:wiml
Number:rdar://10274369 Date Originated:12-Oct-2011 11:04 AM
Status:Open Resolved:
Product: Product Version:10.7.0
Classification: Reproducible:Always
 
12-Oct-2011 11:04 AM W Lewis:
ConvertArrayToKeyUsage() (and therefore the public API functions which call it) does not behave as documented.

SecIdentityPriv.h says: "If the CFArrayRef is NULL then the CSSM_KEYUSAGE will be CSSM_KEYUSE_ANY"

However examining the implementation in SecIdentity.cpp, it is clear that passing NULL will result in 0 being returned (not CSSM_KEYUSE_ANY, which is 0x80000000).

Notes:

The new crypto apis in Lion are terrible.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!