-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This makes sure that ks in a Handle is never nil. A handle with a nil ks doens't work properly anyways, and will result in an error or even a panic later anyways. This check already exists for NewHandleWithNoSecrets, we also add a test for that. This changes the behavior of the deprecated insecurecleartextkeyset.KeysetHandle function: calling insecurecleartextkeyset.KeysetHandle(nil) will now return nil instead of a keyset.Handle with ks=nil, which is basically unusable. PiperOrigin-RevId: 635760959 Change-Id: I2be29d9ee0310754815d14bac0c32a9a5d7b9664
- Loading branch information
1 parent
63c71c2
commit f3be051
Showing
3 changed files
with
33 additions
and
1 deletion.
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