-
Notifications
You must be signed in to change notification settings - Fork 873
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor the ios keychain add command.
This commit removes the --key flag and adds the --account and --service flags. Fixes #350
- Loading branch information
Showing
7 changed files
with
68 additions
and
42 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
Command: ios keychain add | ||
|
||
Usage: ios keychain add --key <key name> --data <entry data> | ||
Usage: ios keychain add --account <account> --service <service> --data <entry data> | ||
|
||
Adds a new entry to the iOS keychain using SecItemAdd. | ||
|
||
The new keychain entry class would be kSecClassGenericPassword with no extra | ||
kSecAttrAccessControl set. | ||
|
||
Examples: | ||
ios keychain add --key token --data 1122-33344-55122-55512 | ||
ios keychain add --account token --data 1122-33344-55122-55512 | ||
ios keychain add --service foo --data bar |
This file contains 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 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