-
Notifications
You must be signed in to change notification settings - Fork 279
FXCM-2273: Refactor login/encryption code into a new support crate #7542
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
Open
oskirby
wants to merge
32
commits into
mozilla:main
Choose a base branch
from
oskirby:fxcm-2274-add-encryption-crate
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+498
−125
Open
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
e744487
Create encryption crate with login crypto code
oskirby a508894
Rename LoginApiError to EncryptionApiError
oskirby a88c4d7
Make the login key functions wrappers of the encryption crate
oskirby d6de42e
Add uniffi interfaces to the encryption crate
oskirby af37a09
Drop logins/src/encryption.rs in favor of new crate
oskirby 53f7f64
Fixup the sync-pass example
oskirby c6a8a2c
NSSKeyManager::new() should take a std::String instead of std::str
oskirby 8c7eada
Fixup test_utils import when keydb feature not enabled
oskirby 943abbf
Fix doc tests
oskirby c097382
Remove unused std::sync::Arc
oskirby 6f5ef46
Attempt to fixup formatting checks
oskirby d9404a4
Add android bindings too?
oskirby d350b60
Maybe fix android KeyManager import?
oskirby f7e60b0
Try to make the clippy linter happy
oskirby 8c4bd88
And once more with feeling
oskirby c3166d6
I think the test enc_login() function is only used when keydb is unset
oskirby 696c357
Fix key_name used by sync-pass
oskirby 085f323
Add megazord bindings for iOS and Android
oskirby 7524b80
Add Swift bindings to uniffi as well
oskirby 209bf05
Align build.gradle to latest template
oskirby 3b67d6e
Add license, drop unused deps and set to rust 2021 edition
oskirby b1c2941
Remove some unused stuff from logins.udl
oskirby 4b5402d
Add parking_lot dependency after rebase
oskirby 39a9868
Add create_key wrappers back after rebase
oskirby a322759
Fix keydb tests after rebase
oskirby 73a002e
Rename crate from encryption to db-crypto
oskirby ffde274
Fix sync-test and lint
oskirby 9a43954
Add a changelog entry
oskirby ef101dd
Fix external UniFFI reference
oskirby cf77c1e
I am running out of ideas on this android UniFFI thing
oskirby be4f0a1
Fix login tests after rebase
oskirby b110afd
Fix formatting
oskirby File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#[handle_error(Error)]here?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original code didn't have it before this PR, but I also don't see a reason why not to add it.