![]() It doesn't provide any advantages in the simplest case, but you can change the query argument to delete multiple certificates at once, or delete certificates without having direct references to them. In Keychain Access on your Mac, if your keychain has become inaccessible (for example, if you’ve forgotten the password), you can delete it and manually create a new keychain. If you target Mac OS 10.6 or later, you can also use the newer SecItemDelete API. ![]() OSStatus status = SecKeychainItemDelete((SecKeychainItemRef)certificate) To prevent compiler warnings, you'll need to explicitly cast the SecCertificateRef to a SecKeychainItemRef - plain C doesn't have language support for subclasses. Certificates are a subtype of keychain items, so you can use SecKeychainItemDelete to remove them.
0 Comments
Leave a Reply. |