fix compile

This commit is contained in:
Jakub 2019-03-07 16:56:12 +01:00
parent 35a4e32efb
commit 36b497d591
11 changed files with 73 additions and 76 deletions

View file

@ -5,6 +5,7 @@ import (
"bytes"
"fmt"
"github.com/ProtonMail/go-pm-crypto/armor"
"github.com/ProtonMail/go-pm-crypto/constants"
"golang.org/x/crypto/openpgp"
"golang.org/x/crypto/openpgp/packet"
"strings"
@ -55,7 +56,7 @@ func PublicKey(privateKey string) (string, error) {
e.Serialize(&outBuf)
}
outString, err := armor.ArmorWithType(outBuf.Bytes(), armor.PUBLIC_KEY_HEADER)
outString, err := armor.ArmorWithType(outBuf.Bytes(), constants.PublicKeyHeader)
if err != nil {
return "", nil
}