Skip to content

Commit

Permalink
sbsign: trivial coding style cleanups
Browse files Browse the repository at this point in the history
Follow-ups for 8c0098d.
  • Loading branch information
yuwata committed Feb 27, 2025
1 parent 505c2f2 commit b835896
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/sbsign/sbsign.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,21 +163,19 @@ static int parse_argv(int argc, char *argv[]) {
arg_prepare_offline_signing = true;
break;

case ARG_SIGNED_DATA: {
case ARG_SIGNED_DATA:
r = parse_path_argument(optarg, /* suppress_root= */ false, &arg_signed_data);
if (r < 0)
return r;

break;
}

case ARG_SIGNED_DATA_SIGNATURE: {
case ARG_SIGNED_DATA_SIGNATURE:
r = parse_path_argument(optarg, /* suppress_root= */ false, &arg_signed_data_signature);
if (r < 0)
return r;

break;
}

case '?':
return -EINVAL;
Expand Down Expand Up @@ -591,7 +589,9 @@ static int verb_sign(int argc, char *argv[], void *userdata) {

log_info("Wrote PKCS#7 DER-encoded signed attributes blob to %s", arg_output);
return 0;
} else if (iovec_is_set(&signed_attributes_signature))
}

if (iovec_is_set(&signed_attributes_signature))
ASN1_STRING_set0(si->enc_digest, TAKE_PTR(signed_attributes_signature.iov_base), signed_attributes_signature.iov_len);
else {
_cleanup_(BIO_free_allp) BIO *bio = NULL;
Expand Down

0 comments on commit b835896

Please sign in to comment.