use non-armored sig check for .gpg files

This commit is contained in:
Aaron Bieber 2020-02-07 07:59:19 -07:00
parent 348f88e1f1
commit e17b1d23fc
1 changed files with 1 additions and 0 deletions

View File

@ -43,6 +43,7 @@ func main() {
switch {
case strings.HasSuffix(sig, ".sig"):
case strings.HasSuffix(sig, ".gpg"):
ent, err = openpgp.CheckDetachedSignature(kr, open(file), open(sig))
case strings.HasSuffix(sig, ".asc"):
ent, err = openpgp.CheckArmoredDetachedSignature(kr, open(file), open(sig))