Skip to content
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

Add accessibility support to SecKey, SecKeyPair, SecCertificate & SecIdentity #78

Merged
merged 7 commits into from
Oct 17, 2023

Commits on Oct 16, 2023

  1. Add accessibility support to SecKey, SecKeyPair, SecCertificate

    … & `SecIdentity`
    
    Allows selecting accessibility (i.e. `kSecAttrAccessible`) when generating or saving items.
    
    As a requirement we add `kSecUseDataProtectionKeychain` to keychain requests. This has the benefit of normalizing keychain access across macOS & iOS, tvOS, watchOS); allowing the removal of the last usage of `#if os(macOS)/#endif` when accessing the keychain.
    
    `SecKey.attributes()` now retrieves _all_ attributes from using `SecItemCopyMatching` instead of  `SecKeyCopyAttributes`; this is backward compatible with previous functionality with _more_ attributes. `SecKey.keyAttributes()` can be used to get previous _smaller_ list of attributes (which may also be faster).
    kdubb committed Oct 16, 2023
    Configuration menu
    Copy the full SHA
    8a16c9b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6ea3dfe View commit details
    Browse the repository at this point in the history
  3. Cleanup key generation in tests

    kdubb committed Oct 16, 2023
    Configuration menu
    Copy the full SHA
    dcf114a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6886a7d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6307c4c View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2023

  1. Configuration menu
    Copy the full SHA
    ef3611c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9e5dccf View commit details
    Browse the repository at this point in the history