It's hard to say without looking at the code in question, but since the keychain APIs are C, not Objective-C, you might run into some problems passing some UInt32 that might previously be forced from an 'unsigned int' or 'int'.
I would check your calls to all Sec * routines and look for signs of problems with the type of enforcement.
gaige source
share