printf("Can't get cert chain\n");
goto exit;
}
- printf("Cert is %d bytes\n", cert_chain_len);
+ printf("Cert is %zu bytes\n", cert_chain_len);
printf("Received cert %s\n", cert_chain);
result = dcm_get_key_bit_length(key_ctx, &key_len);
printf("Can't get key length\n");
goto exit;
}
- printf("Private key is %d bits\n", key_len);
+ printf("Private key is %zu bits\n", key_len);
printf("Private key is %s\n", key_type);
result = dcm_create_signature(key_ctx, DCM_DIGEST_SHA256, "12345678901234567890123456789012", 32, &signature, &signature_len);