kornelski / rust-security-framework

Bindings to the macOS Security.framework
https://lib.rs/security-framework
Apache License 2.0
239 stars 88 forks source link

add missing SecKeychainDelete function #87

Open softprops opened 4 years ago

softprops commented 4 years ago

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

kornelski commented 4 years ago

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(&[])?