// printVerification logs details about the verification to stdout
printVerification logs details about the verification to stdout
// printVerification logs details about the verification to stdout
func printVerification(verified []cosign.SignedPayload, co cosign.CheckOpts) {
	fmt.Fprintln(os.Stderr, "The following checks were performed on each of these signatures:")
	if co.Claims {
		if co.Annotations != nil {
			fmt.Fprintln(os.Stderr, "  - The specified annotations were verified.")
		}
		fmt.Fprintln(os.Stderr, "  - The cosign claims were validated")
	}
	if co.Tlog {
		fmt.Fprintln(os.Stderr, "  - The claims were present in the transparency log")
		fmt.Fprintln(os.Stderr, "  - The signatures were integrated into the transparency log when the certificate was valid")
	}
	if co.PubKey != nil {
		fmt.Fprintln(os.Stderr, "  - The signatures were verified against the specified public key")
	}
	fmt.Fprintln(os.Stderr, "  - Any certificates were verified against the Fulcio roots.")
	for _, vp := range verified {
		if vp.Cert != nil {
			fmt.Println("Certificate common name: ", vp.Cert.Subject.CommonName)
		}
		fmt.Println(string(vp.Payload))
	}
}
func printVerification ( verified [ ] cosign . SignedPayload , co cosign . CheckOpts ) { fmt . Fprintln ( os . Stderr , " " ) if co . Claims { if co . Annotations != nil { fmt . Fprintln ( os . Stderr , " " ) } fmt . Fprintln ( os . Stderr , " " ) } if co . Tlog { fmt . Fprintln ( os . Stderr , " " ) fmt . Fprintln ( os . Stderr , " " ) } if co . PubKey != nil { fmt . Fprintln ( os . Stderr , " " ) } fmt . Fprintln ( os . Stderr , " " ) for _ , vp := range verified { if vp . Cert != nil { fmt . Println ( " " , vp . Cert . Subject . CommonName ) } fmt . Println ( string ( vp . Payload ) ) } }
printVerification logs details about the verification to stdout
printVerification logs details about the verification to stdout