aboutsummaryrefslogblamecommitdiffstats
path: root/lib/crypto/gpg/gpgbin/import-ownertrust.go
blob: 054999175fe25eb2e4b3eba9ba71d4a295b166ab (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                       
package gpgbin

import (
	"io"
)

// Import runs gpg --import-ownertrust and thus imports trusts for keys
func ImportOwnertrust(r io.Reader) error {
	args := []string{"--import-ownertrust"}
	g := newGpg(r, args)
	err := g.cmd.Run()
	if err != nil {
		return err
	}
	return nil
}