summaryrefslogtreecommitdiffhomepage
path: root/lib/crypto-mbedtls.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2025-04-01 11:59:39 +0200
committerMikael Magnusson <mikma@users.sourceforge.net>2025-04-01 11:59:39 +0200
commit4339b79c57547e25a358fe9cd78496f0944ad8d9 (patch)
treed104f78220c9d93f1a1302cc8a6af262a159db86 /lib/crypto-mbedtls.c
parent748f41cd2f1dbbf5fcba3131a21519af7172a54f (diff)
WIP: fix 3.0 breaking change in mbedtls_pk_sign arg
Diffstat (limited to 'lib/crypto-mbedtls.c')
-rw-r--r--lib/crypto-mbedtls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/crypto-mbedtls.c b/lib/crypto-mbedtls.c
index 3fa4cfd..20fff30 100644
--- a/lib/crypto-mbedtls.c
+++ b/lib/crypto-mbedtls.c
@@ -316,7 +316,7 @@ pk_sign(uc_vm_t *vm, size_t nargs)
size_t sig_len = sizeof(sig);
if (mbedtls_pk_sign(&ctx->pk, md_type, hash, hash_len,
- sig, &sig_len,
+ sig, sig_len, &sig_len,
mbedtls_ctr_drbg_random, &ctx->ctr_drbg)) {
uc_vm_raise_exception(vm, EXCEPTION_TYPE, "pk sign failed");
return NULL;