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

Mark up A0SimpleKeychain+KeyPair to admit that keys may not exist #86

Merged
merged 1 commit into from Feb 27, 2020
Merged

Mark up A0SimpleKeychain+KeyPair to admit that keys may not exist #86

merged 1 commit into from Feb 27, 2020

Conversation

cysp
Copy link
Contributor

@cysp cysp commented Feb 25, 2020

Changes

  • Declare -[A0SimpleKeychain keyRefOfRSAKeyWithTag:] and -[A0SimpleKeychain publicRSAKeyDataForTag:] as having nullable return types to match their implementations.

References

It seems like it should be valid to ask for a key that does not exist, and the implementations of these functions gracefully return null in this scenario.

Closes #85.

Testing

This is a compile-time change only, though it will have an impact on source compatibility.

Checklist

Widcket
Widcket previously approved these changes Feb 26, 2020
@Widcket
Copy link
Contributor

Widcket commented Feb 26, 2020

Hi @cysp, thanks for the PR. Can you please rebase?

@cysp
Copy link
Contributor Author

cysp commented Feb 26, 2020

Sure. That rebased cleanly with no conflicts.

@Widcket Widcket merged commit c84393f into auth0:master Feb 27, 2020
@cysp cysp deleted the feature/keypair-nullability branch February 27, 2020 00:34
@Widcket Widcket added this to the vNext milestone Feb 27, 2020
@Widcket Widcket mentioned this pull request Feb 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing nullable annotation for method keyRefOfRSAKeyWithTag:
3 participants