@@ -100,11 +100,11 @@ func pgpVerify(cmd *cobra.Command, args []string) error {
100100 if sshPubKeyFile != "" {
101101 pubkeyraw , err := os .ReadFile (sshPubKeyFile )
102102 if err != nil {
103- return fmt .Errorf ("Error reading SSH pub key %s: %w" , sshPubKeyFile , err )
103+ return fmt .Errorf ("error reading SSH pub key %s: %w" , sshPubKeyFile , err )
104104 }
105105 sshPubKey , _ , _ , _ , err = ssh .ParseAuthorizedKey (pubkeyraw )
106106 if err != nil {
107- return fmt .Errorf ("Error parsing SSH pub key %s: %w" , sshPubKeyFile , err )
107+ return fmt .Errorf ("error parsing SSH pub key %s: %w" , sshPubKeyFile , err )
108108 }
109109 }
110110
@@ -226,14 +226,14 @@ func pgpVerify(cmd *cobra.Command, args []string) error {
226226}
227227
228228func printPGPAttestation (w io.Writer , attestation * pgp.Attestation ) {
229- fmt .Fprintln (w , "YubiKey OPGP Attestation:" )
230- fmt .Fprintf (w , " - Generation Date: %s\n " , attestation .GenerationDate )
231- fmt .Fprintf (w , " - Cardholder : %s\n " , attestation .Cardholder )
232- fmt .Fprintf (w , " - Key slot : %s\n " , attestation .Slot )
233- fmt .Fprintf (w , " - Key source : %s\n " , attestation .Keysource )
234- fmt .Fprintf (w , " - Key fingerprint: %s\n " , attestation .Fingerprint )
235- fmt .Fprintf (w , " - YubiKey Version: v%d.%d.%d\n " , attestation .Version .Major , attestation .Version .Minor , attestation .Version .Patch )
236- fmt .Fprintf (w , " - Serial # : %d\n " , attestation .Serial )
237- fmt .Fprintf (w , " - Formfactor : %s\n " , attestation .Formfactor )
238- fmt .Fprintf (w , " - Touch Policy : %s\n " , attestation .TouchPolicy )
229+ fmt .Fprintln (w , "YubiKey OPGP Attestation:" ) //nolint:errcheck
230+ fmt .Fprintf (w , " - Generation Date: %s\n " , attestation .GenerationDate ) //nolint:errcheck
231+ fmt .Fprintf (w , " - Cardholder : %s\n " , attestation .Cardholder ) //nolint:errcheck
232+ fmt .Fprintf (w , " - Key slot : %s\n " , attestation .Slot ) //nolint:errcheck
233+ fmt .Fprintf (w , " - Key source : %s\n " , attestation .Keysource ) //nolint:errcheck
234+ fmt .Fprintf (w , " - Key fingerprint: %s\n " , attestation .Fingerprint ) //nolint:errcheck
235+ fmt .Fprintf (w , " - YubiKey Version: v%d.%d.%d\n " , attestation .Version .Major , attestation .Version .Minor , attestation .Version .Patch ) //nolint:errcheck
236+ fmt .Fprintf (w , " - Serial # : %d\n " , attestation .Serial ) //nolint:errcheck
237+ fmt .Fprintf (w , " - Formfactor : %s\n " , attestation .Formfactor ) //nolint:errcheck
238+ fmt .Fprintf (w , " - Touch Policy : %s\n " , attestation .TouchPolicy ) //nolint:errcheck
239239}
0 commit comments