-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add key_list_raw() method to return keys as raw vectors
For the case when they contain zero bytes. In this case the `service` and/or `username` is `NA`. Closes #158.
- Loading branch information
1 parent
cefb72c
commit 99b469e
Showing
13 changed files
with
346 additions
and
21 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# zero bytes in keys | ||
|
||
Code | ||
b_macos_list(NULL, list(keyring_file = function(...) NULL)) | ||
Condition | ||
Warning in `b_macos_list()`: | ||
Some service names contain zero bytes. These are shown as NA. Use `key_list_raw()` to see them. | ||
Output | ||
service username | ||
1 foo bar | ||
2 <NA> baz | ||
Code | ||
b_macos_list_raw(NULL, list(keyring_file = function(...) NULL)) | ||
Output | ||
service username service_raw username_raw | ||
1 foo bar 66, 6f, 6f 62, 61, 72 | ||
2 <NA> baz 03, 02, 01, 00 62, 61, 7a | ||
|
||
--- | ||
|
||
Code | ||
b_macos_list(NULL, list(keyring_file = function(...) NULL)) | ||
Condition | ||
Warning in `b_macos_list()`: | ||
Some service names and some user names contain zero bytes. These are shown as NA. Use `key_list_raw()` to see them. | ||
Output | ||
service username | ||
1 foo bar | ||
2 <NA> <NA> | ||
Code | ||
b_macos_list_raw(NULL, list(keyring_file = function(...) NULL)) | ||
Output | ||
service username service_raw username_raw | ||
1 foo bar 66, 6f, 6f 62, 61, 72 | ||
2 <NA> <NA> 03, 02, 01, 00 01, 02, 00, 01, 02 | ||
|
||
--- | ||
|
||
Code | ||
b_macos_list(NULL, list(keyring_file = function(...) NULL)) | ||
Condition | ||
Warning in `b_macos_list()`: | ||
Some user names contain zero bytes. These are shown as NA. Use `key_list_raw()` to see them. | ||
Output | ||
service username | ||
1 foo bar | ||
2 baz <NA> | ||
Code | ||
b_macos_list_raw(NULL, list(keyring_file = function(...) NULL)) | ||
Output | ||
service username service_raw username_raw | ||
1 foo bar 66, 6f, 6f 62, 61, 72 | ||
2 baz <NA> 62, 61, 7a 03, 02, 01, 00 | ||
|
Oops, something went wrong.