-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove SigningMechanism.ImportKeysFromBytes in favor of ephemeral mec…
…hanism objects Instead of SigningMechanism.ImportKeysFromBytes, which may modify long-term state in the user’s home directory, provide NewEphemeralGPGSigningMechanism, which combines creation of a temporary directory and key import; users of NewGPGSigningMechanism (using $GNUPGHOME etc.) and (test-suite) users of newGPGSigningMechanismInDirectory can no longer import keys. To support this, all users of SigningMechanism must call .Close() on the object. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
- Loading branch information
Showing
6 changed files
with
94 additions
and
39 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