Fix up other code to support new GPG provider structure

This commit is contained in:
Andrey Smirnov
2017-06-03 01:26:37 +03:00
parent 07fde3177b
commit 0e9f966dd1
12 changed files with 53 additions and 14 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ func getSigner(options *SigningOptions) (pgp.Signer, error) {
return nil, nil
}
signer := &pgp.GpgSigner{}
signer := context.GetSigner()
signer.SetKey(options.GpgKey)
signer.SetKeyRing(options.Keyring, options.SecretKeyring)
signer.SetPassphrase(options.Passphrase, options.PassphraseFile)