Skip to content

Commit

Permalink
const foo2
Browse files Browse the repository at this point in the history
  • Loading branch information
pabuhler committed Dec 4, 2023
1 parent 599fa8a commit 06cd53a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion crypto/cipher/aes_gcm_nss.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ static srtp_err_status_t srtp_aes_gcm_nss_context_init(void *cv,
return (srtp_err_status_cipher_fail);
}

SECItem key_item = { siBuffer, (unsigned char *)key, c->key_size };
SECItem key_item = { siBuffer, (unsigned char *)(uintptr_t)key,
c->key_size };
c->key = PK11_ImportSymKey(slot, CKM_AES_GCM, PK11_OriginUnwrap,
CKA_ENCRYPT, &key_item, NULL);
PK11_FreeSlot(slot);
Expand Down
3 changes: 2 additions & 1 deletion crypto/cipher/aes_icm_nss.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,8 @@ static srtp_err_status_t srtp_aes_icm_nss_context_init(void *cv,
return srtp_err_status_bad_param;
}

SECItem keyItem = { siBuffer, (unsigned char *)key, c->key_size };
SECItem keyItem = { siBuffer, (unsigned char *)(uintptr_t)key,
c->key_size };
c->key = PK11_ImportSymKey(slot, CKM_AES_CTR, PK11_OriginUnwrap,
CKA_ENCRYPT, &keyItem, NULL);
PK11_FreeSlot(slot);
Expand Down

0 comments on commit 06cd53a

Please sign in to comment.