Skip to content

Commit

Permalink
Adopt v2 API for openpgp package (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
m90 authored Jan 23, 2024
1 parent 67e3b79 commit 810c887
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/backup/script.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"github.com/offen/docker-volume-backup/internal/storage/ssh"
"github.com/offen/docker-volume-backup/internal/storage/webdav"

"github.com/ProtonMail/go-crypto/openpgp"
openpgp "github.com/ProtonMail/go-crypto/openpgp/v2"
"github.com/containrrr/shoutrrr"
"github.com/containrrr/shoutrrr/pkg/router"
"github.com/docker/docker/api/types"
Expand Down Expand Up @@ -540,7 +540,6 @@ func (s *script) encryptArchive() error {

_, name := path.Split(s.file)
dst, err := openpgp.SymmetricallyEncrypt(outFile, []byte(s.c.GpgPassphrase), &openpgp.FileHints{
IsBinary: true,
FileName: name,
}, nil)
if err != nil {
Expand Down

0 comments on commit 810c887

Please sign in to comment.