Remove JSON handling functions; export KeyRing.ReadFrom (#24)

This commit is contained in:
wussler 2019-09-03 17:42:10 +02:00 committed by Daniel Huigens
parent 52ecc1ce36
commit 6136f75860
6 changed files with 22 additions and 215 deletions

View file

@ -164,7 +164,7 @@ func TestMultipleKeyMessageEncryption(t *testing.T) {
var message = NewPlainMessageFromString("plain text")
testPublicKeyRing, _ = pgp.BuildKeyRingArmored(readTestFile("keyring_publicKey", false))
err = testPublicKeyRing.readFrom(strings.NewReader(readTestFile("mime_publicKey", false)), true)
err = testPublicKeyRing.ReadFrom(strings.NewReader(readTestFile("mime_publicKey", false)), true)
if err != nil {
t.Fatal("Expected no error adding second public key, got:", err)
}