rust-security-framework icon indicating copy to clipboard operation
rust-security-framework copied to clipboard

add missing SecKeychainDelete function

Open softprops opened this issue 5 years ago • 1 comments

Thanks for your work on this crate!

I'm looking into integrate it into a new project and found you can do most operations with keychains except for deleting them. It seems there is an api for deleting keychains but I couldn't find the interface in this crate that maps to it

softprops avatar Nov 09 '19 03:11 softprops

It would be good to have it.

Could you make a pull request for it?

It seems that Apple's function is "overloaded" and takes either array or an item. That doesn't fit Rust well. I suppose on the Rust side this should be expressed as two functions. Something like delete_item(&) and delete_items(&[])?

kornelski avatar Nov 09 '19 23:11 kornelski