@@ -96,23 +96,23 @@ static struct option options[] = {
9696static void usage (void )
9797{
9898 printf ("Usage: %s --attach <sigfile> <efi-boot-image>\n"
99- " or: %s --detach <sigfile> [--remove] <efi-boot-image>\n"
100- " or: %s --remove <efi-boot-image>\n"
101- "Attach or detach a signature file to/from a boot image\n"
102- "\n"
103- "Options:\n"
104- "\t--attach <sigfile> set <sigfile> as the boot image's\n"
105- "\t signature table\n"
106- "\t--detach <sigfile> copy the boot image's signature table\n"
107- "\t to <sigfile>\n"
108- "\t--remove remove the boot image's signature\n"
109- "\t table from the original file\n"
110- "\t--signum signature to operate on (defaults to\n"
111- "\t first)\n"
112- "\t--print Verify PKCS#7 message and print content\n"
113- "\t--cert <certfile> certificate (x509 certificate) used for\n"
114- " PKCS#7 verification with --print" ,
115- toolname , toolname , toolname );
99+ " or: %s --detach <sigfile> [--remove] <efi-boot-image>\n"
100+ " or: %s --remove <efi-boot-image>\n"
101+ "Attach or detach a signature file to/from a boot image\n"
102+ "\n"
103+ "Options:\n"
104+ "\t--attach <sigfile> set <sigfile> as the boot image's\n"
105+ "\t signature table\n"
106+ "\t--detach <sigfile> copy the boot image's signature table\n"
107+ "\t to <sigfile>\n"
108+ "\t--remove remove the boot image's signature\n"
109+ "\t table from the original file\n"
110+ "\t--signum signature to operate on (defaults to\n"
111+ "\t first)\n"
112+ "\t--print Verify PKCS#7 message and print content\n"
113+ "\t--cert <certfile> certificate (x509 certificate) used for\n"
114+ " PKCS#7 verification with --print" ,
115+ toolname , toolname , toolname );
116116}
117117
118118static void version (void )
@@ -220,8 +220,8 @@ static int attach_sig(struct pkcs7_generator_opts *opts, struct image *image,
220220 CKINT (image_add_signature (image , sigbuf , size ));
221221
222222 /* Write the PE/COFF structure out to file */
223- CKINT_LOG (image_write (image , image_filename ),
224- "Error writing %s: %s\n" , image_filename , strerror (errno ));
223+ CKINT_LOG (image_write (image , image_filename ), "Error writing %s: %s\n" ,
224+ image_filename , strerror (errno ));
225225
226226out :
227227 release_data (sigbuf , size , lc_pem_flag_nopem );
@@ -240,8 +240,8 @@ static int remove_sig(struct image *image, unsigned int signum,
240240 "Error, image has no signature at %u\n" , signum + 1 );
241241
242242 /* Write the PE/COFF structure out to file */
243- CKINT_LOG (image_write (image , image_filename ),
244- "Error writing %s: %s\n" , image_filename , strerror (errno ));
243+ CKINT_LOG (image_write (image , image_filename ), "Error writing %s: %s\n" ,
244+ image_filename , strerror (errno ));
245245
246246out :
247247 return ret ;
@@ -295,7 +295,7 @@ int main(int argc, char **argv)
295295 return - EINVAL ;
296296
297297 /* humans count from 1 not zero */
298- signum = (unsigned int )val - 1 ;
298+ signum = (unsigned int )val - 1 ;
299299 break ;
300300 case 'r' :
301301 remove = true;
@@ -313,7 +313,7 @@ int main(int argc, char **argv)
313313 ws -> parsed_opts .trust_anchor = optarg ;
314314 CKINT (pkcs7_collect_trust (& ws -> parsed_opts ));
315315 break ;
316- /*
316+ /*
317317 * NOTE: we also could check for EKU/key usage during PKCS#7
318318 * verify:
319319 */
0 commit comments