Skip to content

Commit

Permalink
cose_sign: more const
Browse files Browse the repository at this point in the history
  • Loading branch information
bergzand committed Feb 23, 2022
1 parent 863035f commit 9ca7ba7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cose_sign.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ static int _sign1_decode_sig(const cose_sign_dec_t *sign, const uint8_t **buf, s
return COSE_OK;
}

static void _sign_sig_cbor_dec(const cose_sign_dec_t *sign, cose_signature_dec_t *sig, nanocbor_encoder_t *enc)
static void _sign_sig_cbor_dec(const cose_sign_dec_t *sign, const cose_signature_dec_t *sig, nanocbor_encoder_t *enc)
{
_sign_sig_cbor_start(enc, _is_sign1_dec(sign));
const uint8_t *buf = NULL;
Expand All @@ -329,7 +329,7 @@ static void _sign_sig_cbor_dec(const cose_sign_dec_t *sign, cose_signature_dec_t
nanocbor_put_bstr(enc, sign->payload, sign->payload_len);
}

static size_t _dec_sign_sig(const cose_sign_dec_t *sign, cose_signature_dec_t *sig, uint8_t *buf, size_t buflen)
static size_t _dec_sign_sig(const cose_sign_dec_t *sign, const cose_signature_dec_t *sig, uint8_t *buf, size_t buflen)
{
nanocbor_encoder_t enc;
nanocbor_encoder_init(&enc, buf, buflen);
Expand Down

0 comments on commit 9ca7ba7

Please sign in to comment.