summaryrefslogtreecommitdiffstats
path: root/models/gpg_key.go
diff options
context:
space:
mode:
authorAntoine GIRARD <sapk@users.noreply.github.com>2017-06-14 02:43:43 +0200
committerLunny Xiao <xiaolunwen@gmail.com>2017-06-14 08:43:43 +0800
commit274149dd14909d4ba87f25f8e5160f51ca5f7265 (patch)
tree37157530111d5bf90efcc914fbc8c8e7cdff3db9 /models/gpg_key.go
parent5e92b82ac632043f622117419ad04e57e9c029f3 (diff)
downloadgitea-274149dd14909d4ba87f25f8e5160f51ca5f7265.tar.gz
gitea-274149dd14909d4ba87f25f8e5160f51ca5f7265.zip
Switch to keybase go-crypto (for some elliptic curve key) + test (#1925)
* Switch to keybase go-crypto (for some elliptic curve key) + test * Use assert.NoError and add a little more context to failing test description * Use assert.(No)Error everywhere 🌈 and assert.Error in place of .Nil/.NotNil
Diffstat (limited to 'models/gpg_key.go')
-rw-r--r--models/gpg_key.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/models/gpg_key.go b/models/gpg_key.go
index 862bd88596..6a5daf6361 100644
--- a/models/gpg_key.go
+++ b/models/gpg_key.go
@@ -19,9 +19,9 @@ import (
"code.gitea.io/gitea/modules/log"
"github.com/go-xorm/xorm"
- "golang.org/x/crypto/openpgp"
- "golang.org/x/crypto/openpgp/armor"
- "golang.org/x/crypto/openpgp/packet"
+ "github.com/keybase/go-crypto/openpgp"
+ "github.com/keybase/go-crypto/openpgp/armor"
+ "github.com/keybase/go-crypto/openpgp/packet"
)
// GPGKey represents a GPG key.