-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keychain Services support #70
Comments
I've just released a version with some keychain support. As for integration, as a first step you could try using security-framework-sys for the low-level bindings. |
@kornelski I don't have time to work on this myself, but I'd be very interested in mentoring anyone who wants to port the code over. The types in the Perhaps you could flag this issue with "Help Wanted"/"Good First Issue" or whatever labels are appropriate? |
Hi @tarcieri and @kornelski, I am one of the maintainers of the keyring crate and I recently noticed the lack of support in this framework for adding and removing keyring items on iOS. I would be willing to take on adding this extension if I could get some mentoring. Are either of you willing to think about helping me at this time? |
I can certainly help review attempts to merge |
Thanks, @tarcieri! I've taken a look at the keychain-services code and it's definitely macOS-specific. The keychain stuff on iOS is much simpler and works pretty much the same way the key and other storage works, but with slightly different attributes. So I think I'm going to have to approach this by extending the existing security-framework code to support a couple more system calls than it does currently. @kornelski, is there any specific reason the framework currently supports only the |
@brotskydotcom There's no grand reason behind it. It's fine to change the implementation. |
@kornelski I'm making good progress, and have the start of something working that's a consistent overlay on what's there. A few questions:
|
I've fixed a couple of warnings. Generally there shouldn't be any, but sometimes unused fields or imports creep in with particular combinations of features. Except |
Yes, please use 2018 edition. I don't think 2021 adds enough to warrant a big jump in minimum supported rust version yet. Sure, a Swift app would be nice. But please have tests for it, so that it doesn't rot. |
Understood and will definitely have tests. Thanks for the quick answers. |
FYI, I've started writing a crate which provides a somewhat idiomatic Keychain Services binding:
https://github.com/iqlusioninc/keychain-services-rs
I'd be interested in trying to contribute its functionality upstream to this crate, or otherwise finding a way to share code (e.g.
SecKey
).See also: iqlusioninc/keychain-services.rs#3
The text was updated successfully, but these errors were encountered: