Debian Codegraph @

apkverifier/main.go

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
•1 package main
2
3 import (
4 "fmt"
5 "github.com/avast/apkverifier"
6 "os"
7 )
8
9 func main() {
10 res, err := apkverifier.Verify(os.Args[1], nil)
11 if err != nil {
12 fmt.Fprintf(os.Stderr, "Verification failed: %s\n", err.Error())
13 }
14
15 fmt.Printf("Verification scheme used: v%d\n", res.SigningSchemeId)
16 cert, _ := apkverifier.PickBestApkCert(res.SignerCerts)
17 if cert == nil {
18 fmt.Printf("No certificate found.\n")
19 } else {
20 fmt.Println(cert)
21 }
22 }