diff --git a/openpgp/clearsign/clearsign.go b/openpgp/clearsign/clearsign.go index 9d66e93a..90bb9fc2 100644 --- a/openpgp/clearsign/clearsign.go +++ b/openpgp/clearsign/clearsign.go @@ -359,7 +359,7 @@ func (d *dashEscaper) Close() (err error) { // Encode returns a WriteCloser which will clear-sign a message with privateKey // and write it to w. If config is nil, sensible defaults are used. -func Encode(w io.Writer, privateKey *packet.PrivateKey, config *packet.Config, headers map[string]string) (plaintext io.WriteCloser, err error) { +func Encode(w io.Writer, privateKey *packet.PrivateKey, config *packet.Config) (plaintext io.WriteCloser, err error) { return EncodeMulti(w, []*packet.PrivateKey{privateKey}, config) } diff --git a/openpgp/clearsign/clearsign_test.go b/openpgp/clearsign/clearsign_test.go index 5d0396be..0e93c864 100644 --- a/openpgp/clearsign/clearsign_test.go +++ b/openpgp/clearsign/clearsign_test.go @@ -114,7 +114,7 @@ func TestSigning(t *testing.T) { for i, test := range signingTests { var buf bytes.Buffer - plaintext, err := Encode(&buf, keyring[0].PrivateKey, allowAllAlgorithmsConfig, nil) + plaintext, err := Encode(&buf, keyring[0].PrivateKey, allowAllAlgorithmsConfig) if err != nil { t.Errorf("#%d: error from Encode: %s", i, err) continue @@ -155,7 +155,7 @@ func TestSigningInterop(t *testing.T) { } var buf bytes.Buffer - plaintext, err := Encode(&buf, keyring[0].PrivateKey, nil, nil) + plaintext, err := Encode(&buf, keyring[0].PrivateKey, nil) if err != nil { t.Errorf("error from Encode") }