SecItemAdd documentation problems

Originator:mayoff
Number:rdar://38525113 Date Originated:15-Mar-2018 07:32 PM
Status:Open Resolved:
Product:Documentation Product Version:current
Classification:UI/Usability Reproducible:Always
 
Summary:
Dear Security Documentationeros,

The documentation for SecItemAdd can be found here:

https://developer.apple.com/documentation/security/1401659-secitemadd?language=occ

It says “Use the kSecValueRef key to indicate the data you want to store.” This is incorrect and results in a errSecParam (-50) status code. The correct key is kSecValueData.

Also, the documentation doesn't specify whether the object returned by reference in *result needs to be released (with CFRelease) by the caller. It should specify this. (It does need to be released.)

Thanks,
Rob


Steps to Reproduce:
 

Expected Results:
 

Actual Results:
 

Version:
current

Notes:

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!